@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,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-Cy2-QffW.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-DFCCQ9AE.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 };
@@ -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-Cy2-QffW.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 };
package/dist/index.d.mts CHANGED
@@ -1,12 +1,10 @@
1
1
 
2
- import { c as DataPolicy, d as UserBase, 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";
3
- import { A as RequestWithExtras, Bn as IController, Bt as TreeMixin, C as RequestIdOptions, Cn as ArcGetResult, D as FastifyWithAuth, Dn as ControllerConfigurableOptions, E as FastifyRequestExtras, En as BaseControllerOptions, F as ResourceDefinition, Fn as WriteContext, G as CrudRouteKey, Gt as BaseCrudController, H as PresetFunction, Hn as IRequestContext, Ht as SlugMixin, I as CrudController, In as WriteVerbKey, It as BaseController, J as MiddlewareConfig, K as CrudSchemas, L as ResourceConfig, Lt as SoftDeleteExt, Nn as MutationWriteContext, O as FastifyWithDecorators, On as ControllerConstructionOptions, P as defineResource, Pn as ResourceWrites, Q as FieldRule, Rn as ControllerLike, Rt as SoftDeleteMixin, S as IntrospectionPluginOptions, Sn as ArcDeleteResult, Tn as ArcUpdateResult, Un as RawRouteHandler, Ut as BulkExt, Vn as IControllerResponse, Vt as SlugExt, W as PresetResult, Wn as RouteHandler, Wt as BulkMixin, X as RouteSchemaOptions, _ as ServiceContext, a as IntrospectionData, at as AggregationCacheConfig, b as HealthCheck, c as ResourceMetadata, ct as AggregationIndexHint, dt as AggregationRateLimit, f as OwnershipCheck, ft as AggregationsMap, g as RequestContext, h as QueryParserInterface, i as PaginationResult, it as AggMeasureShorthand, jt as AuthPluginOptions, kn as ListResult, kt as RateLimitConfig, l as ArcInternalMetadata, lt as AggregationMaterializedContext, n as InferDocType, nt as EventDefinition, o as RegistryEntry, ot as AggregationConfig, r as InferResourceDoc, rt as AggMeasureInput, s as RegistryStats, st as AggregationDateRangeRequirement, t as InferAdapterDoc, ut as AggregationMaterializedResult, v as CrudRouterOptions, wn as ArcListResult, x as HealthOptions, xn as ArcCreateResult, y as GracefulShutdownOptions, zt as TreeExt } from "./index-WH7xgvxS.mjs";
4
- import { a as applyFieldReadPermissions, n as FieldPermissionMap, o as applyFieldWritePermissions, s as fields, t as FieldPermission } from "./fields-BBSpf8pS.mjs";
5
- import "./fastify-augmentation-DRlCIWE9.mjs";
6
- import { A as CrudOperation, B as HookOperation, C as mergeResourceConfig, F as DEFAULT_TENANT_FIELD, G as MUTATION_OPERATIONS, H as MAX_FILTER_DEPTH, I as DEFAULT_UPDATE_METHOD, J as SYSTEM_FIELDS, K as MutationOperation, M as DEFAULT_LIMIT, N as DEFAULT_MAX_LIMIT, O as defineAggregation, P as DEFAULT_SORT, R as HOOK_OPERATIONS, S as SeamedResourceConfig, T as defineAction, U as MAX_REGEX_LENGTH, V as HookPhase, W as MAX_SEARCH_LENGTH, b as AdapterLike, c as nativePolicyFilter, j as DEFAULT_ID_FIELD, k as CRUD_OPERATIONS, m as getControllerScope, q as RESERVED_QUERY_PARAMS, s as NativePolicyFilter, x as ResourceSeams, y as defineResourceVariants, z as HOOK_PHASES } from "./index-Beg3aNnK.mjs";
7
- import { C as requireScopeContext, G as createDynamicPermissionMatrix, H as DynamicPermissionMatrix, J as PublicPolicy, K as createOrgPermissions, Q as anyOf, S as requireOrgRole, T as requireTeamMembership, U as DynamicPermissionMatrixConfig, Y as allOf, Z as allowPublic, _ as publicRead, at as requireRoles, b as requireOrgInScope, d as adminOnly, et as denyAll, f as authenticated, g as presets_d_exports, m as ownerWithAdminBypass, nt as requireAuth, p as fullPublic, q as AllowPublicOptions, rt as requireOwnership, st as when, v as publicReadAdminWrite, w as requireServiceScope, x as requireOrgMembership, y as readOnly } from "./index-Bxriq3so.mjs";
8
- import { a as NotFoundError, d as ValidationError, f as createDomainError, i as ForbiddenError, t as ArcError, u as UnauthorizedError } from "./errors-JYc9vwqE.mjs";
9
- //#region src/index.d.ts
2
+ import { c as DataPolicy, d as UserBase, 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";
3
+ import { A as RequestWithExtras, Bn as IController, Bt as TreeMixin, C as RequestIdOptions, Cn as ArcGetResult, D as FastifyWithAuth, Dn as ControllerConfigurableOptions, E as FastifyRequestExtras, En as BaseControllerOptions, F as ResourceDefinition, Fn as WriteContext, G as CrudRouteKey, Gt as BaseCrudController, H as PresetFunction, Hn as IRequestContext, Ht as SlugMixin, I as CrudController, In as WriteVerbKey, It as BaseController, J as MiddlewareConfig, K as CrudSchemas, L as ResourceConfig, Lt as SoftDeleteExt, Nn as MutationWriteContext, O as FastifyWithDecorators, On as ControllerConstructionOptions, P as defineResource, Pn as ResourceWrites, Q as FieldRule, Rn as ControllerLike, Rt as SoftDeleteMixin, S as IntrospectionPluginOptions, Sn as ArcDeleteResult, Tn as ArcUpdateResult, Un as RawRouteHandler, Ut as BulkExt, Vn as IControllerResponse, Vt as SlugExt, W as PresetResult, Wn as RouteHandler, Wt as BulkMixin, X as RouteSchemaOptions, _ as ServiceContext, a as IntrospectionData, at as AggregationCacheConfig, b as HealthCheck, c as ResourceMetadata, ct as AggregationIndexHint, dt as AggregationRateLimit, f as OwnershipCheck, ft as AggregationsMap, g as RequestContext, h as QueryParserInterface, i as PaginationResult, it as AggMeasureShorthand, jt as AuthPluginOptions, kn as ListResult, kt as RateLimitConfig, l as ArcInternalMetadata, lt as AggregationMaterializedContext, n as InferDocType, nt as EventDefinition, o as RegistryEntry, ot as AggregationConfig, r as InferResourceDoc, rt as AggMeasureInput, s as RegistryStats, st as AggregationDateRangeRequirement, t as InferAdapterDoc, ut as AggregationMaterializedResult, v as CrudRouterOptions, wn as ArcListResult, x as HealthOptions, xn as ArcCreateResult, y as GracefulShutdownOptions, zt as TreeExt } from "./index-Cy2-QffW.mjs";
4
+ import { a as applyFieldReadPermissions, n as FieldPermissionMap, o as applyFieldWritePermissions, s as fields, t as FieldPermission } from "./fields-JTkrtO-r.mjs";
5
+ import "./fastify-augmentation-bzkWPt1f.mjs";
6
+ import { $ as RESERVED_QUERY_PARAMS, B as DEFAULT_SORT, D as ResourceSeams, E as AdapterLike, F as CRUD_OPERATIONS, G as HOOK_PHASES, H as DEFAULT_UPDATE_METHOD, I as CrudOperation, J as MAX_FILTER_DEPTH, K as HookOperation, L as DEFAULT_ID_FIELD, O as SeamedResourceConfig, P as defineAggregation, Q as MutationOperation, R as DEFAULT_LIMIT, T as defineResourceVariants, V as DEFAULT_TENANT_FIELD, W as HOOK_OPERATIONS, X as MAX_SEARCH_LENGTH, Y as MAX_REGEX_LENGTH, Z as MUTATION_OPERATIONS, b as getControllerScope, et as SYSTEM_FIELDS, j as defineAction, k as mergeResourceConfig, m as nativePolicyFilter, p as NativePolicyFilter, q as HookPhase, z as DEFAULT_MAX_LIMIT } from "./index-BxZS-8So.mjs";
7
+ import { C as requireScopeContext, G as createDynamicPermissionMatrix, H as DynamicPermissionMatrix, J as PublicPolicy, K as createOrgPermissions, Q as anyOf, S as requireOrgRole, T as requireTeamMembership, U as DynamicPermissionMatrixConfig, Y as allOf, Z as allowPublic, _ as publicRead, at as requireRoles, b as requireOrgInScope, d as adminOnly, et as denyAll, f as authenticated, g as presets_d_exports, m as ownerWithAdminBypass, nt as requireAuth, p as fullPublic, q as AllowPublicOptions, rt as requireOwnership, st as when, v as publicReadAdminWrite, w as requireServiceScope, x as requireOrgMembership, y as readOnly } from "./index-B5i9-vuP.mjs";
8
+ import { a as NotFoundError, d as ValidationError, f as createDomainError, i as ForbiddenError, t as ArcError, u as UnauthorizedError } from "./errors-DTo0me1o.mjs";
10
9
  export declare const version: string;
11
- //#endregion
12
10
  export { type AdapterLike, type AggMeasureInput, type AggMeasureShorthand, type AggregationCacheConfig, type AggregationConfig, type AggregationDateRangeRequirement, type AggregationIndexHint, type AggregationMaterializedContext, type AggregationMaterializedResult, type AggregationRateLimit, type AggregationsMap, type AllowPublicOptions, type AnyRecord, type ArcCreateResult, type ArcDeleteResult, ArcError, type ArcGetResult, type ArcInternalMetadata, type ArcListResult, type ArcRequest, type ArcUpdateResult, type AuthPluginOptions, type AuthorizationDecision, BaseController, type BaseControllerOptions, BaseCrudController, type BulkExt, BulkMixin, CRUD_OPERATIONS, type ControllerConfigurableOptions, type ControllerConstructionOptions, type ControllerLike, type CrudController, type CrudOperation, type CrudRouteKey, type CrudRouterOptions, type CrudSchemas, DEFAULT_ID_FIELD, DEFAULT_LIMIT, DEFAULT_MAX_LIMIT, DEFAULT_SORT, DEFAULT_TENANT_FIELD, DEFAULT_UPDATE_METHOD, type DataPolicy, type DynamicPermissionMatrix, type DynamicPermissionMatrixConfig, type EventDefinition, type FastifyRequestExtras, type FastifyWithAuth, type FastifyWithDecorators, type FieldPermission, type FieldPermissionMap, type FieldRule, ForbiddenError, type GracefulShutdownOptions, HOOK_OPERATIONS, HOOK_PHASES, type HealthCheck, type HealthOptions, type HookOperation, type HookPhase, type IController, type IControllerResponse, type IRequestContext, type InferAdapterDoc, type InferDocType, type InferResourceDoc, type IntrospectionData, type IntrospectionPluginOptions, type JWTPayload, type ListResult, MAX_FILTER_DEPTH, MAX_REGEX_LENGTH, MAX_SEARCH_LENGTH, MUTATION_OPERATIONS, type MiddlewareConfig, type MutationOperation, type MutationWriteContext, type NativePolicyFilter, NotFoundError, type OwnershipCheck, type PaginationResult, type PermissionCheck, type PermissionContext, type PresetFunction, type PresetResult, type PublicPolicy, type QueryParserInterface, RESERVED_QUERY_PARAMS, type RateLimitConfig, type RawRouteHandler, type RegistryEntry, type RegistryStats, type RequestContext, type RequestIdOptions, type RequestWithExtras, type ResourceConfig, ResourceDefinition, type ResourceMetadata, type ResourceSeams, type ResourceWrites, type RouteHandler, type RouteSchemaOptions, SYSTEM_FIELDS, type SeamedResourceConfig, type ServiceContext, type SlugExt, SlugMixin, type SoftDeleteExt, SoftDeleteMixin, type TreeExt, TreeMixin, UnauthorizedError, type UserBase, type UserOrganization, ValidationError, type WriteContext, type WriteVerbKey, adminOnly, allOf, allowPublic, anyOf, applyFieldReadPermissions, applyFieldWritePermissions, authenticated, createDomainError, createDynamicPermissionMatrix, createOrgPermissions, defineAction, defineAggregation, defineResource, defineResourceVariants, denyAll, fields, fullPublic, getControllerScope, mergeResourceConfig, nativePolicyFilter, ownerWithAdminBypass, presets_d_exports as permissions, publicRead, publicReadAdminWrite, readOnly, requireAuth, requireOrgInScope, requireOrgMembership, requireOrgRole, requireOwnership, requireRoles, requireScopeContext, requireServiceScope, requireTeamMembership, when };
package/dist/index.mjs CHANGED
@@ -1,14 +1,13 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
2
- import { a as DEFAULT_SORT, d as MAX_FILTER_DEPTH, f as MAX_REGEX_LENGTH, g as SYSTEM_FIELDS, h as RESERVED_QUERY_PARAMS, i as DEFAULT_MAX_LIMIT, l as HOOK_OPERATIONS, m as MUTATION_OPERATIONS, n as DEFAULT_ID_FIELD, o as DEFAULT_TENANT_FIELD, p as MAX_SEARCH_LENGTH, r as DEFAULT_LIMIT, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS, u as HOOK_PHASES } from "./constants-D_aiew34.mjs";
3
- import { d as createDomainError, i as NotFoundError, l as UnauthorizedError, r as ForbiddenError, t as ArcError, u as ValidationError } from "./errors-grZkIA8N.mjs";
4
- import { S as nativePolicyFilter, c as BaseController, d as SlugMixin, f as BulkMixin, l as TreeMixin, p as BaseCrudController, u as SoftDeleteMixin } from "./plugin-DXTjVg_Q.mjs";
5
- import { t as defineAggregation } from "./defineAggregation-BLza7Ca4.mjs";
6
- import { i as fields, n as applyFieldWritePermissions, t as applyFieldReadPermissions } from "./fields-BRX0Krcj.mjs";
7
- import { S as getControllerScope } from "./actionPermissions-DRVk6m7x.mjs";
8
- import { a as defineResourceVariants, o as mergeResourceConfig, s as defineAction } from "./core-QIZ2560Y.mjs";
9
- import { a as ResourceDefinition, t as defineResource } from "./defineResource-CEo0gDCb.mjs";
10
- import { B as requireAuth, C as createOrgPermissions, D as requireScopeContext, E as requireOrgRole, F as allowPublic, G as when, I as anyOf, N as allOf, O as requireServiceScope, R as denyAll, S as createDynamicPermissionMatrix, T as requireOrgMembership, U as requireRoles, V as requireOwnership, a as adminOnly, c as ownerWithAdminBypass, d as publicRead, f as publicReadAdminWrite, k as requireTeamMembership, o as authenticated, p as readOnly, s as fullPublic, u as presets_exports, w as requireOrgInScope } from "./permissions-B14c3OMp.mjs";
11
- //#region src/index.ts
12
- const version = "2.45.2";
13
- //#endregion
1
+ /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
+ import { a as DEFAULT_SORT, d as MAX_FILTER_DEPTH, f as MAX_REGEX_LENGTH, g as SYSTEM_FIELDS, h as RESERVED_QUERY_PARAMS, i as DEFAULT_MAX_LIMIT, l as HOOK_OPERATIONS, m as MUTATION_OPERATIONS, n as DEFAULT_ID_FIELD, o as DEFAULT_TENANT_FIELD, p as MAX_SEARCH_LENGTH, r as DEFAULT_LIMIT, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS, u as HOOK_PHASES } from "./constants-Cx7BcnHT.mjs";
3
+ import { d as createDomainError, i as NotFoundError, l as UnauthorizedError, r as ForbiddenError, t as ArcError, u as ValidationError } from "./errors-DnrUChAy.mjs";
4
+ import { E as nativePolicyFilter, _ as BaseCrudController, f as BaseController, g as BulkMixin, h as SlugMixin, m as SoftDeleteMixin, p as TreeMixin } from "./plugin-Bn4D_0XK.mjs";
5
+ import { t as defineAggregation } from "./defineAggregation-CFNfvz-C.mjs";
6
+ import { i as fields, n as applyFieldWritePermissions, t as applyFieldReadPermissions } from "./fields-CYdpcV73.mjs";
7
+ import { S as getControllerScope } from "./actionPermissions-DXrlWHHK.mjs";
8
+ import { a as defineResourceVariants, o as mergeResourceConfig, s as defineAction } from "./core-0WyMuo0f.mjs";
9
+ import { a as ResourceDefinition, t as defineResource } from "./defineResource-BROJmhzJ.mjs";
10
+ import { B as requireAuth, C as createOrgPermissions, D as requireScopeContext, E as requireOrgRole, F as allowPublic, G as when, I as anyOf, N as allOf, O as requireServiceScope, R as denyAll, S as createDynamicPermissionMatrix, T as requireOrgMembership, U as requireRoles, V as requireOwnership, a as adminOnly, c as ownerWithAdminBypass, d as publicRead, f as publicReadAdminWrite, k as requireTeamMembership, o as authenticated, p as readOnly, s as fullPublic, u as presets_exports, w as requireOrgInScope } from "./permissions-BBy4bOGi.mjs";
11
+ // src/index.ts
12
+ const version = "2.47.0";
14
13
  export { ArcError, BaseController, BaseCrudController, BulkMixin, CRUD_OPERATIONS, DEFAULT_ID_FIELD, DEFAULT_LIMIT, DEFAULT_MAX_LIMIT, DEFAULT_SORT, DEFAULT_TENANT_FIELD, DEFAULT_UPDATE_METHOD, ForbiddenError, HOOK_OPERATIONS, HOOK_PHASES, MAX_FILTER_DEPTH, MAX_REGEX_LENGTH, MAX_SEARCH_LENGTH, MUTATION_OPERATIONS, NotFoundError, RESERVED_QUERY_PARAMS, ResourceDefinition, SYSTEM_FIELDS, SlugMixin, SoftDeleteMixin, TreeMixin, UnauthorizedError, ValidationError, adminOnly, allOf, allowPublic, anyOf, applyFieldReadPermissions, applyFieldWritePermissions, authenticated, createDomainError, createDynamicPermissionMatrix, createOrgPermissions, defineAction, defineAggregation, defineResource, defineResourceVariants, denyAll, fields, fullPublic, getControllerScope, mergeResourceConfig, nativePolicyFilter, ownerWithAdminBypass, presets_exports as permissions, publicRead, publicReadAdminWrite, readOnly, requireAuth, requireOrgInScope, requireOrgMembership, requireOrgRole, requireOwnership, requireRoles, requireScopeContext, requireServiceScope, requireTeamMembership, version, when };
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
2
  import * as fs from "node:fs/promises";
3
3
  import * as path from "node:path";
4
4
  import { dirname, join } from "node:path";
@@ -6,7 +6,7 @@ import { fileURLToPath } from "node:url";
6
6
  import { accessSync, existsSync, readFileSync } from "node:fs";
7
7
  import * as readline from "node:readline";
8
8
  import { execSync, spawn } from "node:child_process";
9
- //#region src/cli/commands/init/dependency-plan.ts
9
+ // src/cli/commands/init/dependency-plan.ts
10
10
  /**
11
11
  * Single source of truth for scaffolded project dependencies.
12
12
  *
@@ -205,8 +205,7 @@ function resolveScaffoldDependencies(config) {
205
205
  function sortByKey(record) {
206
206
  return Object.fromEntries(Object.entries(record).sort(([a], [b]) => a.localeCompare(b)));
207
207
  }
208
- //#endregion
209
- //#region src/cli/commands/init/templates/adapter.ts
208
+ // src/cli/commands/init/templates/adapter.ts
210
209
  function createAdapterTemplate(config) {
211
210
  const ts = config.typescript;
212
211
  return `/**
@@ -276,8 +275,7 @@ export function createAdapter${ts ? "<TDoc = unknown>" : ""}(
276
275
  }
277
276
  `;
278
277
  }
279
- //#endregion
280
- //#region src/cli/commands/init/templates/agents.ts
278
+ // src/cli/commands/init/templates/agents.ts
281
279
  function agentsGuideTemplate(config) {
282
280
  return `# CLAUDE.md — agent guide for this app
283
281
 
@@ -330,8 +328,7 @@ npx arc describe # list registered resources + routes
330
328
  \`\`\`
331
329
  `;
332
330
  }
333
- //#endregion
334
- //#region src/cli/commands/init/templates/app.ts
331
+ // src/cli/commands/init/templates/app.ts
335
332
  function indexTemplate(config) {
336
333
  const ts = config.typescript;
337
334
  if (config.edge) return edgeIndexTemplate(config);
@@ -570,8 +567,7 @@ if (env === 'dev' && loaded.length > 0) {
570
567
  export const ENV = env;
571
568
  `;
572
569
  }
573
- //#endregion
574
- //#region src/cli/commands/init/templates/auth.ts
570
+ // src/cli/commands/init/templates/auth.ts
575
571
  function authResourceTemplate(config) {
576
572
  const ts = config.typescript;
577
573
  return `/**
@@ -1218,8 +1214,7 @@ ${config.adapter === "mongokit" ? ` await mongoose.connection.collection('use
1218
1214
  });
1219
1215
  `;
1220
1216
  }
1221
- //#endregion
1222
- //#region src/cli/commands/init/templates/config.ts
1217
+ // src/cli/commands/init/templates/config.ts
1223
1218
  /**
1224
1219
  * Project-level config templates — package.json, tsconfig, vitest, gitignore,
1225
1220
  * env files, README, runtime config module.
@@ -1812,8 +1807,7 @@ ${isMongo ? `
1812
1807
  export default config;
1813
1808
  `;
1814
1809
  }
1815
- //#endregion
1816
- //#region src/cli/commands/init/templates/docker.ts
1810
+ // src/cli/commands/init/templates/docker.ts
1817
1811
  function dockerignoreTemplate() {
1818
1812
  return `node_modules
1819
1813
  dist
@@ -1946,8 +1940,7 @@ ${dbConfig}
1946
1940
  # { pattern = "api.example.com/*", zone_name = "example.com" }
1947
1941
  `;
1948
1942
  }
1949
- //#endregion
1950
- //#region src/cli/commands/init/templates/example.ts
1943
+ // src/cli/commands/init/templates/example.ts
1951
1944
  function exampleModelTemplate(config) {
1952
1945
  const ts = config.typescript;
1953
1946
  const typeExport = ts ? `
@@ -2326,8 +2319,7 @@ ${config.tenant === "multi" ? `
2326
2319
  });
2327
2320
  `;
2328
2321
  }
2329
- //#endregion
2330
- //#region src/cli/commands/init/templates/permissions.ts
2322
+ // src/cli/commands/init/templates/permissions.ts
2331
2323
  function permissionsTemplate(config) {
2332
2324
  const ts = config.typescript;
2333
2325
  const typeImport = ts ? ",\n type PermissionCheck," : "";
@@ -2525,8 +2517,7 @@ export const teamScopedPermissions = {
2525
2517
  }
2526
2518
  return content;
2527
2519
  }
2528
- //#endregion
2529
- //#region src/cli/commands/init/templates/plugins.ts
2520
+ // src/cli/commands/init/templates/plugins.ts
2530
2521
  function pluginsIndexTemplate(config) {
2531
2522
  const ts = config.typescript;
2532
2523
  const typeImport = ts ? "import type { FastifyInstance } from 'fastify';\n" : "";
@@ -2577,8 +2568,7 @@ export async function registerPlugins(
2577
2568
  `;
2578
2569
  return content;
2579
2570
  }
2580
- //#endregion
2581
- //#region src/cli/commands/init/templates/presets.ts
2571
+ // src/cli/commands/init/templates/presets.ts
2582
2572
  function presetsMultiTenantTemplate(config) {
2583
2573
  return `/**
2584
2574
  * Arc Presets - Multi-Tenant Configuration
@@ -2737,8 +2727,7 @@ export function flexibleMultiTenantPreset(options${ts ? ": FlexibleMultiTenantOp
2737
2727
  export default flexibleMultiTenantPreset;
2738
2728
  `;
2739
2729
  }
2740
- //#endregion
2741
- //#region src/cli/commands/init/templates/resources.ts
2730
+ // src/cli/commands/init/templates/resources.ts
2742
2731
  function resourcesIndexTemplate(config) {
2743
2732
  const ts = config.typescript;
2744
2733
  const authImports = config.auth === "jwt" ? `
@@ -2796,8 +2785,7 @@ export * from './permissions.js';
2796
2785
  export * from './presets/index.js';
2797
2786
  `;
2798
2787
  }
2799
- //#endregion
2800
- //#region src/cli/commands/init/templates/user.ts
2788
+ // src/cli/commands/init/templates/user.ts
2801
2789
  function userModelTemplate(config) {
2802
2790
  const ts = config.typescript;
2803
2791
  const orgRoles = config.tenant === "multi" ? `
@@ -3068,8 +3056,7 @@ const userController = new UserController();
3068
3056
  export default userController;
3069
3057
  `;
3070
3058
  }
3071
- //#endregion
3072
- //#region src/cli/commands/init/file-writer.ts
3059
+ // src/cli/commands/init/file-writer.ts
3073
3060
  /**
3074
3061
  * Scaffolding I/O — given a fully-resolved `ProjectConfig`, materialise
3075
3062
  * the project directory tree and write every template-produced file.
@@ -3213,8 +3200,7 @@ Documentation:
3213
3200
  https://github.com/classytic/arc
3214
3201
  `);
3215
3202
  }
3216
- //#endregion
3217
- //#region src/cli/commands/init/options.ts
3203
+ // src/cli/commands/init/options.ts
3218
3204
  /**
3219
3205
  * Interactive option-gathering for `arc init`.
3220
3206
  *
@@ -3288,8 +3274,7 @@ async function gatherConfig(options) {
3288
3274
  rl.close();
3289
3275
  }
3290
3276
  }
3291
- //#endregion
3292
- //#region src/cli/commands/init/postinstall.ts
3277
+ // src/cli/commands/init/postinstall.ts
3293
3278
  /**
3294
3279
  * Package manager detection + post-scaffold installation.
3295
3280
  *
@@ -3402,8 +3387,7 @@ function runCommand(command, cwd) {
3402
3387
  child.on("error", reject);
3403
3388
  });
3404
3389
  }
3405
- //#endregion
3406
- //#region src/cli/commands/init/index.ts
3390
+ // src/cli/commands/init/index.ts
3407
3391
  /**
3408
3392
  * `arc init` orchestrator — banners, prompt-gathering, scaffold writing,
3409
3393
  * dependency installation. Every step lives in its own module under
@@ -3458,5 +3442,4 @@ async function init(options = {}) {
3458
3442
  }
3459
3443
  printSuccessMessage(config, options.skipInstall);
3460
3444
  }
3461
- //#endregion
3462
3445
  export { init as t };
@@ -1,5 +1,4 @@
1
1
 
2
- //#region src/cli/commands/init/types.d.ts
3
2
  /**
4
3
  * Shared types for the `arc init` scaffolder.
5
4
  *
@@ -62,11 +61,8 @@ interface DependencyManifest {
62
61
  dependencies: Record<string, string>;
63
62
  devDependencies: Record<string, string>;
64
63
  }
65
- //#endregion
66
- //#region src/cli/commands/init/index.d.ts
67
64
  /**
68
65
  * Initialize a new Arc project.
69
66
  */
70
67
  declare function init(options?: InitOptions): Promise<void>;
71
- //#endregion
72
68
  export { ProjectConfig as a, PackageManager as i, DependencyManifest as n, InitOptions as r, init as t };
@@ -1,8 +1,7 @@
1
1
 
2
- import { n as DomainEvent } from "../EventTransport-CiicKz2Z.mjs";
3
- import { c as WebSocketClient, l as WebSocketMessage } from "../websocket-Cs4awVyD.mjs";
2
+ import { n as DomainEvent } from "../EventTransport-CYEoCJGe.mjs";
3
+ import { c as WebSocketClient, l as WebSocketMessage } from "../websocket-BGuc-WVZ.mjs";
4
4
  import { FastifyPluginAsync, FastifyRequest } from "fastify";
5
- //#region src/integrations/event-gateway.d.ts
6
5
  export interface EventGatewayOptions {
7
6
  /** Require auth for all real-time connections (default: true) */
8
7
  auth?: boolean;
@@ -46,5 +45,4 @@ export interface EventGatewayOptions {
46
45
  onDisconnect?: (client: WebSocketClient) => void | Promise<void>;
47
46
  };
48
47
  }
49
- export declare const eventGatewayPlugin: FastifyPluginAsync<EventGatewayOptions>;
50
- //#endregion
48
+ export declare const eventGatewayPlugin: FastifyPluginAsync<EventGatewayOptions>;
@@ -1,11 +1,11 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
2
  import fp from "fastify-plugin";
3
- //#region src/integrations/event-gateway.ts
3
+ // src/integrations/event-gateway.ts
4
4
  const eventGatewayPluginImpl = async (fastify, opts = {}) => {
5
5
  const { auth = true, orgScoped, roomPolicy, maxMessageBytes, maxSubscriptionsPerClient, authenticate } = opts;
6
6
  if (auth && !authenticate && !fastify.hasDecorator("authenticate")) throw new Error("[arc-event-gateway] auth is true but fastify.authenticate is not registered. Register an auth plugin first, provide a custom authenticate function, or set auth: false.");
7
7
  if (opts.sse !== false) {
8
- const { default: ssePlugin } = await import("../sse-CuNNWr2z.mjs").then((n) => n.n);
8
+ const { default: ssePlugin } = await import("../sse-B_50llZu.mjs").then((n) => n.n);
9
9
  await fastify.register(ssePlugin, {
10
10
  path: opts.sse?.path ?? "/events/stream",
11
11
  requireAuth: auth,
@@ -44,5 +44,4 @@ const eventGatewayPlugin = fp(eventGatewayPluginImpl, {
44
44
  name: "arc-event-gateway",
45
45
  fastify: "5.x"
46
46
  });
47
- //#endregion
48
47
  export { eventGatewayPlugin };
@@ -1,8 +1,8 @@
1
1
 
2
- import { c as WebSocketClient, l as WebSocketMessage, u as WebSocketPluginOptions } from "../websocket-Cs4awVyD.mjs";
2
+ import { c as WebSocketClient, l as WebSocketMessage, u as WebSocketPluginOptions } from "../websocket-BGuc-WVZ.mjs";
3
3
  import { EventGatewayOptions } from "./event-gateway.mjs";
4
- import { a as JobMeta, c as JobsPluginOptions, i as JobDispatcher, l as QueueStats, n as JobDefinition, r as JobDispatchOptions } from "../index-Chgz3d0i.mjs";
5
- import { _ as ToolDefinition, c as McpAuthResult, d as McpResourceConfig, f as PromptDefinition, g as ToolContext, h as ToolAnnotations, n as CallToolResult, o as CrudOperation, r as CreateMcpServerConfig, t as BetterAuthHandler, u as McpPluginOptions } from "../types-D3Ixsh00.mjs";
4
+ import { a as JobMeta, c as JobsPluginOptions, i as JobDispatcher, l as QueueStats, n as JobDefinition, r as JobDispatchOptions } from "../index-BAXDo5eE.mjs";
5
+ import { _ as ToolDefinition, c as McpAuthResult, d as McpResourceConfig, f as PromptDefinition, g as ToolContext, h as ToolAnnotations, n as CallToolResult, o as CrudOperation, r as CreateMcpServerConfig, t as BetterAuthHandler, u as McpPluginOptions } from "../types-DeLiuaNv.mjs";
6
6
  import { StreamlinePluginOptions, WorkflowLike, WorkflowRunLike } from "./streamline.mjs";
7
7
  import { WebhookDeliveryRecord, WebhookManager, WebhookPluginOptions, WebhookStore, WebhookSubscription } from "./webhooks.mjs";
8
8
  export type { BetterAuthHandler, CallToolResult, CreateMcpServerConfig, CrudOperation, EventGatewayOptions, JobDefinition, JobDispatchOptions, JobDispatcher, JobMeta, JobsPluginOptions, McpAuthResult, McpPluginOptions, McpResourceConfig, PromptDefinition, QueueStats, StreamlinePluginOptions, ToolAnnotations, ToolContext, ToolDefinition, WebSocketClient, WebSocketMessage, WebSocketPluginOptions, WebhookDeliveryRecord, WebhookManager, WebhookPluginOptions, WebhookStore, WebhookSubscription, WorkflowLike, WorkflowRunLike };
@@ -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 JobMeta, c as JobsPluginOptions, d as ExecuteTimedHandlerOptions, f as TimedHandlerLogger, i as JobDispatcher, l as QueueStats, n as JobDefinition, o as JobRepeatOptions, p as executeTimedHandler, r as JobDispatchOptions, s as JobStatus, t as jobsPlugin, u as defineJob } from "../../index-Chgz3d0i.mjs";
2
+ import { a as JobMeta, c as JobsPluginOptions, d as ExecuteTimedHandlerOptions, f as TimedHandlerLogger, i as JobDispatcher, l as QueueStats, n as JobDefinition, o as JobRepeatOptions, p as executeTimedHandler, r as JobDispatchOptions, s as JobStatus, t as jobsPlugin, u as defineJob } from "../../index-BAXDo5eE.mjs";
3
3
  export { type ExecuteTimedHandlerOptions, type JobDefinition, type JobDispatchOptions, type JobDispatcher, type JobMeta, type JobRepeatOptions, type JobStatus, type JobsPluginOptions, type QueueStats, type TimedHandlerLogger, defineJob, executeTimedHandler, jobsPlugin };
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
2
- import { n as evaluateAndApplyPermission } from "../../authorizationDecision-D48fUJv1.mjs";
3
- import { i as runAdmittedWork, r as registerShutdownParticipant } from "../../shutdown-CfrqPR7A.mjs";
1
+ /*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
2
+ import { n as evaluateAndApplyPermission } from "../../authorizationDecision-DYiubkYw.mjs";
3
+ import { i as runAdmittedWork, r as registerShutdownParticipant } from "../../shutdown-BJiJN7FT.mjs";
4
4
  import fp from "fastify-plugin";
5
- //#region src/integrations/jobs/execution.ts
5
+ // src/integrations/jobs/execution.ts
6
6
  async function executeTimedHandler(options) {
7
7
  const { run, label, jobId, timeoutMs, cancelGraceMs = 3e4, logger } = options;
8
8
  let released = false;
@@ -49,8 +49,7 @@ async function executeTimedHandler(options) {
49
49
  clearTimeout(timer);
50
50
  }
51
51
  }
52
- //#endregion
53
- //#region src/integrations/jobs/repeat.ts
52
+ // src/integrations/jobs/repeat.ts
54
53
  /**
55
54
  * Whether an existing schedule matches the currently configured repeat spec.
56
55
  *
@@ -108,8 +107,7 @@ async function removeStaleRepeatSchedulers(queue, jobName, spec, log) {
108
107
  }, `[arc/jobs] Failed to reconcile repeatable schedules for '${jobName}' — continuing (boot-time hygiene only)`);
109
108
  }
110
109
  }
111
- //#endregion
112
- //#region src/integrations/jobs/plugin.ts
110
+ // src/integrations/jobs/plugin.ts
113
111
  var Semaphore = class {
114
112
  available;
115
113
  waiters = [];
@@ -481,8 +479,7 @@ const jobsPlugin = fp(jobsPluginImpl, {
481
479
  name: "arc-jobs",
482
480
  fastify: "5.x"
483
481
  });
484
- //#endregion
485
- //#region src/integrations/jobs/types.ts
482
+ // src/integrations/jobs/types.ts
486
483
  /**
487
484
  * Define a background job with typed data and configuration.
488
485
  *
@@ -499,5 +496,4 @@ const jobsPlugin = fp(jobsPluginImpl, {
499
496
  function defineJob(definition) {
500
497
  return definition;
501
498
  }
502
- //#endregion
503
499
  export { defineJob, executeTimedHandler, jobsPlugin };