@classytic/arc 2.45.1 → 2.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +1 -1
  2. package/dist/{EventTransport-CiicKz2Z.d.mts → EventTransport-CYEoCJGe.d.mts} +0 -2
  3. package/dist/{EventTransport-4b0noGwa.mjs → EventTransport-DNgD9NP4.mjs} +3 -4
  4. package/dist/{HookSystem-4pABQnGn.mjs → HookSystem-DRbPzEcP.mjs} +3 -4
  5. package/dist/{QueryCache--5uAuYPW.d.mts → QueryCache-DdvrGG8Q.d.mts} +1 -3
  6. package/dist/{ResourceRegistry-BBaN_Ne-.mjs → ResourceRegistry-Douk51fa.mjs} +15 -4
  7. package/dist/{acquire-kiZzy5bX.mjs → acquire-RbtvDg9s.mjs} +2 -3
  8. package/dist/{actionPermissions-BLnbDA6g.mjs → actionPermissions-De0AJ7hm.mjs} +37 -42
  9. package/dist/audit/index.d.mts +2 -10
  10. package/dist/audit/index.mjs +8 -12
  11. package/dist/auth/audit.d.mts +0 -2
  12. package/dist/auth/audit.mjs +2 -3
  13. package/dist/auth/index.d.mts +9 -17
  14. package/dist/auth/index.mjs +26 -29
  15. package/dist/auth/redis-session.d.mts +2 -4
  16. package/dist/auth/redis-session.mjs +2 -3
  17. package/dist/{authorizationDecision-CVlaTjAX.mjs → authorizationDecision-DeZMrHcm.mjs} +5 -6
  18. package/dist/{base-CZyixEQR.d.mts → base-HXNgPQww.d.mts} +1 -7
  19. package/dist/{boundedMap-DSy7KkeX.mjs → boundedMap-2WBh3gM9.mjs} +2 -3
  20. package/dist/{buildHandler-B4IhILv9.mjs → buildHandler-DxVOOBpw.mjs} +5 -6
  21. package/dist/cache/index.d.mts +4 -10
  22. package/dist/cache/index.mjs +5 -6
  23. package/dist/{caching-DqakP2vY.mjs → caching-BYRwYrUo.mjs} +3 -4
  24. package/dist/{claimed-XoiVrWZ2.mjs → claimed-DYlELdnm.mjs} +2 -3
  25. package/dist/cleanup/index.d.mts +9 -18
  26. package/dist/cleanup/index.mjs +12 -20
  27. package/dist/cli/commands/describe.d.mts +1 -3
  28. package/dist/cli/commands/describe.mjs +4 -5
  29. package/dist/cli/commands/docs.d.mts +1 -3
  30. package/dist/cli/commands/docs.mjs +4 -5
  31. package/dist/cli/commands/doctor.d.mts +1 -3
  32. package/dist/cli/commands/doctor.mjs +2 -3
  33. package/dist/cli/commands/generate.d.mts +1 -1
  34. package/dist/cli/commands/generate.mjs +2 -2
  35. package/dist/cli/commands/init.d.mts +1 -1
  36. package/dist/cli/commands/init.mjs +2 -2
  37. package/dist/cli/commands/introspect.d.mts +1 -3
  38. package/dist/cli/commands/introspect.mjs +3 -4
  39. package/dist/cli/index.d.mts +2 -2
  40. package/dist/cli/index.mjs +3 -3
  41. package/dist/{constants-CtWkmWn3.mjs → constants-CHZMUwBW.mjs} +2 -3
  42. package/dist/context/index.d.mts +0 -8
  43. package/dist/context/index.mjs +6 -7
  44. package/dist/core/index.d.mts +3 -3
  45. package/dist/core/index.mjs +8 -8
  46. package/dist/{core-Cro2v5a7.mjs → core-D9rS2BxO.mjs} +9 -12
  47. package/dist/{createActionRouter-k-gwiPv6.mjs → createActionRouter-0qkCRzTL.mjs} +7 -8
  48. package/dist/{createAggregationRouter-BqWqhAPG.mjs → createAggregationRouter-CUf5Esd9.mjs} +9 -10
  49. package/dist/{createApp-Dw7L72Hz.mjs → createApp-DZIXfDKD.mjs} +49 -62
  50. package/dist/{createMcpServer-DSztofa9.d.mts → createMcpServer-DeVpqQF-.d.mts} +1 -3
  51. package/dist/{defineAggregation-pxbd7BBK.mjs → defineAggregation-bmKQ4NmC.mjs} +2 -3
  52. package/dist/{defineResource-DwgEjLCO.mjs → defineResource-CGmdmGwh.mjs} +78 -29
  53. package/dist/discovery/index.d.mts +1 -3
  54. package/dist/discovery/index.mjs +2 -3
  55. package/dist/docs/index.d.mts +8 -8
  56. package/dist/docs/index.mjs +4 -5
  57. package/dist/{elevation-B9wF2Z1F.mjs → elevation-CzhqAyVN.mjs} +9 -10
  58. package/dist/{elevation-BW2J3tNj.d.mts → elevation-DPD0hcU-.d.mts} +0 -2
  59. package/dist/encryption/index.d.mts +1 -7
  60. package/dist/encryption/index.mjs +8 -13
  61. package/dist/{errorHandler--4rSMMvq.d.mts → errorHandler-B9r88jZV.d.mts} +8 -3
  62. package/dist/{errorHandler-Dr2nG0Ui.mjs → errorHandler-dFyGOEoB.mjs} +16 -6
  63. package/dist/{errors-BtHzrSA6.mjs → errors-BY8vzlP4.mjs} +2 -3
  64. package/dist/{errors-JYc9vwqE.d.mts → errors-DTo0me1o.d.mts} +0 -2
  65. package/dist/{eventPlugin-BtmA4-3P.d.mts → eventPlugin-BY38F6yK.d.mts} +1 -7
  66. package/dist/{eventPlugin-Dvs7OBw8.mjs → eventPlugin-eMhAPtQA.mjs} +10 -12
  67. package/dist/{eventTypes-BVoCTG5c.mjs → eventTypes-Do2KYeJx.mjs} +5 -8
  68. package/dist/events/index.d.mts +4 -16
  69. package/dist/events/index.mjs +8 -9
  70. package/dist/events/transports/redis-stream-entry.d.mts +1 -1
  71. package/dist/events/transports/redis-stream-entry.mjs +5 -6
  72. package/dist/events/transports/redis.d.mts +2 -4
  73. package/dist/events/transports/redis.mjs +3 -4
  74. package/dist/{externalPaths-CmGOxOtD.d.mts → externalPaths-BOqdq5wr.d.mts} +0 -2
  75. package/dist/factory/index.d.mts +4 -14
  76. package/dist/factory/index.mjs +12 -18
  77. package/dist/{fastify-augmentation-DRlCIWE9.d.mts → fastify-augmentation-Dtn0IIRn.d.mts} +4 -10
  78. package/dist/{fields-BBSpf8pS.d.mts → fields-JTkrtO-r.d.mts} +0 -2
  79. package/dist/{fields-C1e_7Fwi.mjs → fields-LnbCcvsw.mjs} +2 -3
  80. package/dist/{filter-merge-xaiEKtz8.mjs → filter-merge-BAWi019Q.mjs} +2 -3
  81. package/dist/{generate-DCGuEbqI.d.mts → generate-C-g_KOkV.d.mts} +0 -4
  82. package/dist/{generate-DJiJMaXN.mjs → generate-oXoDnpJf.mjs} +7 -12
  83. package/dist/{headers-Dr-wt6Tr.mjs → headers-DBd3Qheo.mjs} +3 -4
  84. package/dist/{health-DkkWbJtQ.mjs → health-BlJu9GXS.mjs} +2 -3
  85. package/dist/{health-BLYn_Hds.mjs → health-Dp-3EC9o.mjs} +4 -7
  86. package/dist/hooks/index.d.mts +1 -1
  87. package/dist/hooks/index.mjs +2 -2
  88. package/dist/idempotency/index.d.mts +3 -9
  89. package/dist/idempotency/index.mjs +10 -13
  90. package/dist/idempotency/redis.d.mts +1 -1
  91. package/dist/idempotency/redis.mjs +3 -4
  92. package/dist/{index-Bxriq3so.d.mts → index-B5i9-vuP.d.mts} +4 -26
  93. package/dist/{index-Chgz3d0i.d.mts → index-BAXDo5eE.d.mts} +1 -7
  94. package/dist/{index-Beg3aNnK.d.mts → index-BTxzJ_MN.d.mts} +67 -25
  95. package/dist/{index-CUJvoyw3.d.mts → index-Bqfo8hLz.d.mts} +2 -24
  96. package/dist/{index-uhkUA5-U.d.mts → index-CUdaoCYt.d.mts} +13 -23
  97. package/dist/{index-WH7xgvxS.d.mts → index-DyJFTJLA.d.mts} +31 -92
  98. package/dist/index.d.mts +7 -9
  99. package/dist/index.mjs +12 -13
  100. package/dist/{init-CW3kJqNW.mjs → init-BOaNkLYb.mjs} +18 -35
  101. package/dist/{init-Cscs4lab.d.mts → init-CV2_Fw3H.d.mts} +0 -4
  102. package/dist/integrations/event-gateway.d.mts +3 -5
  103. package/dist/integrations/event-gateway.mjs +3 -4
  104. package/dist/integrations/index.d.mts +3 -3
  105. package/dist/integrations/index.mjs +1 -1
  106. package/dist/integrations/jobs/index.d.mts +1 -1
  107. package/dist/integrations/jobs/index.mjs +7 -11
  108. package/dist/integrations/mcp/index.d.mts +7 -39
  109. package/dist/integrations/mcp/index.mjs +8 -14
  110. package/dist/integrations/mcp/testing.d.mts +3 -5
  111. package/dist/integrations/mcp/testing.mjs +3 -4
  112. package/dist/integrations/streamline.d.mts +1 -3
  113. package/dist/integrations/streamline.mjs +4 -5
  114. package/dist/integrations/webhooks.d.mts +2 -4
  115. package/dist/integrations/webhooks.mjs +4 -5
  116. package/dist/integrations/websocket-pushref-redis.d.mts +2 -4
  117. package/dist/integrations/websocket-pushref-redis.mjs +2 -3
  118. package/dist/integrations/websocket-redis.d.mts +2 -4
  119. package/dist/integrations/websocket-redis.mjs +2 -3
  120. package/dist/integrations/websocket.d.mts +2 -2
  121. package/dist/integrations/websocket.mjs +13 -24
  122. package/dist/{interface-JJzwH4Ro.d.mts → interface-BmExzQRD.d.mts} +0 -2
  123. package/dist/{interface-BOk3YnTz.d.mts → interface-WR1U0K7t.d.mts} +0 -2
  124. package/dist/{jsonBody-DPU8yYwA.mjs → jsonBody-DpRpKR_K.mjs} +3 -4
  125. package/dist/{keys-Dgn6OYhl.mjs → keys-FBz6Ull-.mjs} +2 -3
  126. package/dist/{loadResources-BtKj6P1P.mjs → loadResources-Bx1sKPnF.mjs} +4 -5
  127. package/dist/{loadResourcesFromEntry-Bmq6TnB7.mjs → loadResourcesFromEntry-b_jcqbxh.mjs} +3 -4
  128. package/dist/logger/index.d.mts +1 -3
  129. package/dist/logger/index.mjs +2 -2
  130. package/dist/{logger-qQNLlOAU.mjs → logger-CbFcIEBZ.mjs} +3 -5
  131. package/dist/{mcpPlugin-DDfe8jAP.mjs → mcpPlugin-yix548XX.mjs} +41 -60
  132. package/dist/{memory-C0Blueoh.mjs → memory-Bgw5dn8N.mjs} +4 -5
  133. package/dist/{metrics-DYka72iN.mjs → metrics-CZDQWVjS.mjs} +4 -5
  134. package/dist/middleware/index.d.mts +1 -5
  135. package/dist/middleware/index.mjs +4 -5
  136. package/dist/migrations/index.d.mts +0 -2
  137. package/dist/migrations/index.mjs +3 -4
  138. package/dist/{module-BszSyWbd.mjs → module-Dsc_nKL5.mjs} +2 -3
  139. package/dist/{multiTenant-CAtYlW6H.d.mts → multiTenant-XCxAUlru.d.mts} +1 -5
  140. package/dist/{multipartBody-RHvIkNmc.mjs → multipartBody-B85ek8Kj.mjs} +2 -3
  141. package/dist/observeSend-BK-JN1jK.mjs +20 -0
  142. package/dist/{openapi-BrFPc3Ny.mjs → openapi-Co7hl073.mjs} +18 -28
  143. package/dist/outbox-admin/index.d.mts +2 -4
  144. package/dist/outbox-admin/index.mjs +6 -7
  145. package/dist/{outbox-module-gZCHoE4H.d.mts → outbox-module-XvUThpqn.d.mts} +2 -8
  146. package/dist/{outbox-module-DF4Bu_Qa.mjs → outbox-module-mg9kDYkd.mjs} +13 -17
  147. package/dist/permissions/index.d.mts +4 -4
  148. package/dist/permissions/index.mjs +7 -7
  149. package/dist/{permissions-DN1CWH56.mjs → permissions-A1oKtpiC.mjs} +19 -29
  150. package/dist/{pipe-B8uq865o.mjs → pipe-Czpw9U2n.mjs} +3 -4
  151. package/dist/pipeline/index.d.mts +1 -9
  152. package/dist/pipeline/index.mjs +5 -8
  153. package/dist/{plan-DUGfynNg.mjs → plan-KVseuBCL.mjs} +5 -9
  154. package/dist/{plugin-ByU3h-bR.mjs → plugin-DTWt_8C3.mjs} +130 -62
  155. package/dist/plugins/index.d.mts +8 -16
  156. package/dist/plugins/index.mjs +22 -26
  157. package/dist/plugins/response-cache.d.mts +2 -4
  158. package/dist/plugins/response-cache.mjs +10 -10
  159. package/dist/plugins/tracing-entry.d.mts +1 -1
  160. package/dist/plugins/tracing-entry.mjs +3 -4
  161. package/dist/{pluralize-Cdya8zYt.mjs → pluralize-msB9X3yw.mjs} +2 -3
  162. package/dist/presets/filesUpload.d.mts +4 -6
  163. package/dist/presets/filesUpload.mjs +6 -7
  164. package/dist/presets/index.d.mts +3 -19
  165. package/dist/presets/index.mjs +2 -2
  166. package/dist/presets/multiTenant.d.mts +1 -1
  167. package/dist/presets/multiTenant.mjs +7 -7
  168. package/dist/presets/search.d.mts +3 -5
  169. package/dist/presets/search.mjs +3 -4
  170. package/dist/{presets-CCOlKTZw.mjs → presets-qKCehiJM.mjs} +11 -18
  171. package/dist/{projection-BGty6ie4.mjs → projection-ClBqtsIw.mjs} +3 -4
  172. package/dist/{pushref-registry-UxCkoA4C.d.mts → pushref-registry-d86QUaSq.d.mts} +0 -6
  173. package/dist/{queryCachePlugin-B7itTkWu.mjs → queryCachePlugin-3gJj5Rbz.mjs} +8 -10
  174. package/dist/{queryCachePlugin-C2lZjTxk.d.mts → queryCachePlugin-DYQUyeJ9.d.mts} +2 -4
  175. package/dist/{rateLimitKey-DBWO59H9.mjs → rateLimitKey-Kro---xl.mjs} +2 -3
  176. package/dist/{realtime-_59Rlje8.mjs → realtime-Ber8uJN2.mjs} +17 -19
  177. package/dist/{redis-BDgv9Glw.d.mts → redis-RpDMemdm.d.mts} +2 -4
  178. package/dist/{redis-stream-BMk-bpQS.d.mts → redis-stream-CS1N9dwM.d.mts} +1 -3
  179. package/dist/{redisShapes-CQksY67q.d.mts → redisShapes-CqBXTn_s.d.mts} +0 -2
  180. package/dist/registry/index.d.mts +2 -12
  181. package/dist/registry/index.mjs +3 -3
  182. package/dist/{registry-uG4wr541.mjs → registry-BA-_vFYk.mjs} +7 -12
  183. package/dist/{renewingLease-CiU3ZynH.mjs → renewingLease-CMY8YOcc.mjs} +2 -3
  184. package/dist/{replyHelpers-Dr2pnXZg.mjs → replyHelpers-DK9P_XSz.mjs} +3 -4
  185. package/dist/{requestContext-DBKIdmDi.mjs → requestContext-GYO_0gEw.mjs} +2 -3
  186. package/dist/{requirement-CbiLdQ1n.d.mts → requirement-CTRQjjQx.d.mts} +0 -2
  187. package/dist/{requirement-DxOaghWD.mjs → requirement-DeNjZIH3.mjs} +2 -3
  188. package/dist/{resourceRateLimit-Wf6d6FL9.d.mts → resourceRateLimit-DCWglD7V.d.mts} +1 -3
  189. package/dist/{resourceRateLimit-BBdj5yRq.mjs → resourceRateLimit-tHLbrtWc.mjs} +3 -4
  190. package/dist/{rolldown-runtime-DpVPUeXF.mjs → rolldown-runtime-Kv1fZdLg.mjs} +2 -3
  191. package/dist/{routeValidator-BNTqM1Eh.mjs → routeValidator-C_H5NanI.mjs} +2 -3
  192. package/dist/{runtimeCapabilities-D_3eUO6V.mjs → runtimeCapabilities-DWqbxkyw.mjs} +2 -3
  193. package/dist/{schedules-CVS7c1nv.mjs → schedules-eO_RzhCU.mjs} +132 -9
  194. package/dist/{schemaConverter-BQbg7loK.mjs → schemaConverter-DBJrPZN4.mjs} +3 -4
  195. package/dist/{schemaIR-CUI3hPQR.mjs → schemaIR-CEScKT2v.mjs} +3 -4
  196. package/dist/schemas/index.d.mts +0 -2
  197. package/dist/schemas/index.mjs +2 -3
  198. package/dist/scim/index.d.mts +0 -12
  199. package/dist/scim/index.mjs +10 -18
  200. package/dist/scope/index.d.mts +2 -6
  201. package/dist/scope/index.mjs +5 -5
  202. package/dist/{scope-DFXngazv.mjs → scope-B-Sm9m_E.mjs} +5 -6
  203. package/dist/{sessionManager-qimlKV0P.d.mts → sessionManager-CdvDF04x.d.mts} +2 -4
  204. package/dist/{shutdown-BCXCwghd.mjs → shutdown-DzLFbe27.mjs} +2 -3
  205. package/dist/{simpleEqualityMatcher-5jOzYQ_L.mjs → simpleEqualityMatcher-DOJhwQ8g.mjs} +2 -3
  206. package/dist/{sse-BilBz766.mjs → sse-2972pVwV.mjs} +8 -9
  207. package/dist/{sseStream-BG_uJL6J.mjs → sseStream-AWLEeNV-.mjs} +3 -4
  208. package/dist/{storage-Cx9Sz3Ou.d.mts → storage-odC5MNKN.d.mts} +0 -2
  209. package/dist/{store-helpers-CzLZdVa1.mjs → store-helpers-VzjgVTkM.mjs} +2 -3
  210. package/dist/{streaming-DgUvMWlv.mjs → streaming-DvraWW6x.mjs} +2 -3
  211. package/dist/{subscriberIdentity-EWnIZ-U8.mjs → subscriberIdentity-Bya56jsg.mjs} +2 -3
  212. package/dist/{tenancy-CVMvO5DH.mjs → tenancy-DSa_0hhw.mjs} +3 -4
  213. package/dist/{tenantPreparation-DIH-GX4g.mjs → tenantPreparation-BrpkQre3.mjs} +5 -6
  214. package/dist/testing/cleanupStoreContract.d.mts +2 -4
  215. package/dist/testing/cleanupStoreContract.mjs +2 -3
  216. package/dist/testing/index.d.mts +6 -32
  217. package/dist/testing/index.mjs +24 -37
  218. package/dist/testing/outboxStoreContract.d.mts +1 -3
  219. package/dist/testing/outboxStoreContract.mjs +3 -4
  220. package/dist/testing/requiredPorts.d.mts +2 -4
  221. package/dist/testing/requiredPorts.mjs +3 -4
  222. package/dist/testing/storageContract.d.mts +2 -4
  223. package/dist/testing/storageContract.mjs +2 -3
  224. package/dist/{timing-q9NITK04.mjs → timing-6rQTuCwg.mjs} +3 -5
  225. package/dist/{tracing-Dro5eH6j.d.mts → tracing-JSFiBl5r.d.mts} +0 -2
  226. package/dist/{transactionContext-NHmhDIOF.mjs → transactionContext-DaxYUEgH.mjs} +2 -3
  227. package/dist/{typeGuards-CPYR9RCg.mjs → typeGuards-UKnX8wPX.mjs} +2 -3
  228. package/dist/types/index.d.mts +4 -4
  229. package/dist/types/index.mjs +1 -1
  230. package/dist/types/storage.d.mts +1 -1
  231. package/dist/types/storage.mjs +1 -1
  232. package/dist/{types-ByHn9rEO.d.mts → types-0Dqlbgn8.d.mts} +0 -2
  233. package/dist/{types-D3Ixsh00.d.mts → types-BYEb_dLW.d.mts} +2 -4
  234. package/dist/{types-BJ-2XqVF.d.mts → types-BeEJm-DV.d.mts} +114 -14
  235. package/dist/{types-DVLddu2q.d.mts → types-C0YJAiL0.d.mts} +0 -2
  236. package/dist/{types-BI4sbUJ3.mjs → types-CuGjhn83.mjs} +5 -6
  237. package/dist/{types-Ddl9OjmE.d.mts → types-DnkIALZ8.d.mts} +0 -4
  238. package/dist/usage/index.d.mts +2 -10
  239. package/dist/usage/index.mjs +8 -12
  240. package/dist/{userHelpers-oBTU3a_k.mjs → userHelpers-oX5_mOVs.mjs} +2 -3
  241. package/dist/utils/index.d.mts +5 -39
  242. package/dist/utils/index.mjs +12 -12
  243. package/dist/{utils-BmE8zRrh.mjs → utils-CjjGOT4E.mjs} +20 -30
  244. package/dist/{validate-Dby08LhR.mjs → validate-4RlTKOJb.mjs} +5 -7
  245. package/dist/{versioning-P6JMNcJr.mjs → versioning-Dk2-19La.mjs} +4 -5
  246. package/dist/{versioning-Bqm_57Qt.d.mts → versioning-S18y2-0C.d.mts} +1 -15
  247. package/dist/{websocket-Cs4awVyD.d.mts → websocket-BGuc-WVZ.d.mts} +1 -15
  248. package/dist/{workScope-BcMLKa3G.mjs → workScope-DoBsoVo4.mjs} +3 -4
  249. package/llms.txt +37 -30
  250. package/package.json +9 -8
  251. package/skills/arc/SKILL.md +65 -844
  252. package/skills/arc/references/agent-auth.md +82 -193
  253. package/skills/arc/references/api-reference.md +41 -245
  254. package/skills/arc/references/auth-api-keys.md +99 -0
  255. package/skills/arc/references/auth-better-auth-overlay.md +87 -0
  256. package/skills/arc/references/auth-better-auth.md +78 -0
  257. package/skills/arc/references/auth-permissions.md +100 -0
  258. package/skills/arc/references/auth-strategies.md +122 -0
  259. package/skills/arc/references/boot.md +80 -0
  260. package/skills/arc/references/enterprise-auth.md +65 -81
  261. package/skills/arc/references/events-outbox.md +90 -0
  262. package/skills/arc/references/events.md +75 -440
  263. package/skills/arc/references/integrations-jobs.md +74 -0
  264. package/skills/arc/references/integrations-realtime.md +84 -0
  265. package/skills/arc/references/integrations-webhooks.md +71 -0
  266. package/skills/arc/references/integrations-workflows.md +47 -0
  267. package/skills/arc/references/mcp-auth.md +83 -0
  268. package/skills/arc/references/mcp-custom-tools.md +125 -0
  269. package/skills/arc/references/mcp-setup.md +115 -0
  270. package/skills/arc/references/mcp-testing.md +63 -0
  271. package/skills/arc/references/multi-tenancy.md +56 -230
  272. package/skills/arc/references/permissions-scope.md +81 -0
  273. package/skills/arc/references/production-api.md +119 -0
  274. package/skills/arc/references/production-audit.md +101 -0
  275. package/skills/arc/references/production-boot.md +91 -0
  276. package/skills/arc/references/production-caching.md +63 -0
  277. package/skills/arc/references/production-distributed.md +75 -0
  278. package/skills/arc/references/production-idempotency.md +83 -0
  279. package/skills/arc/references/production-observability.md +83 -0
  280. package/skills/arc/references/production-realtime.md +70 -0
  281. package/skills/arc/references/production-reliability.md +100 -0
  282. package/skills/arc/references/production-shutdown.md +43 -0
  283. package/skills/arc/references/querying.md +76 -0
  284. package/skills/arc/references/resources.md +97 -0
  285. package/skills/arc/references/schedules.md +79 -0
  286. package/skills/arc/references/scim.md +61 -208
  287. package/skills/arc/references/tenancy-scope-install.md +82 -0
  288. package/skills/arc/references/testing.md +101 -144
  289. package/skills/arc/references/usage-cleanup-capabilities.md +45 -0
  290. package/skills/arc/references/validation.md +91 -0
  291. package/skills/arc/references/writes-hooks-errors.md +80 -0
  292. package/skills/arc-code-review/SKILL.md +67 -114
  293. package/skills/arc-code-review/references/arc-cheatsheet.md +68 -167
  294. package/skills/arc-code-review/references/mongokit-repositories.md +104 -0
  295. package/skills/arc-code-review/references/recipe-events-cache-jobs.md +112 -0
  296. package/skills/arc-code-review/references/recipe-resource.md +100 -0
  297. package/skills/arc-code-review/references/recipe-schemas-fields.md +93 -0
  298. package/skills/arc-code-review/references/recipe-scope-permissions.md +82 -0
  299. package/skills/arc-code-review/references/scaffolding.md +61 -198
  300. package/skills/arc-code-review/references/severity.md +49 -102
  301. package/skills/arc-code-review/references/smells-auth-scope.md +80 -0
  302. package/skills/arc-code-review/references/smells-data-events.md +66 -0
  303. package/skills/arc-code-review/references/smells-imports-style.md +59 -0
  304. package/skills/arc-code-review/references/smells-platform.md +89 -0
  305. package/skills/arc-code-review/references/smells-routes-schemas.md +66 -0
  306. package/skills/arc-module-publishing/SKILL.md +82 -208
  307. package/skills/arc-module-publishing/references/action-presets-and-plugins.md +87 -0
  308. package/skills/arc-module-publishing/references/build-and-types.md +73 -0
  309. package/skills/arc-module-publishing/references/module-lifecycle.md +101 -0
  310. package/skills/arc-module-publishing/references/package-manifest.md +34 -122
  311. package/skills/arc-module-publishing/references/publishing-workflow.md +44 -140
  312. package/skills/arc-module-publishing/references/resource-assembly.md +102 -0
  313. package/skills/arc-module-publishing/references/testing-packages.md +82 -0
  314. package/skills/arc/references/auth.md +0 -729
  315. package/skills/arc/references/integrations.md +0 -452
  316. package/skills/arc/references/mcp.md +0 -691
  317. package/skills/arc/references/production.md +0 -835
  318. package/skills/arc-code-review/references/anti-patterns.md +0 -1008
  319. package/skills/arc-code-review/references/migration-recipes.md +0 -649
  320. package/skills/arc-code-review/references/mongokit-migration.md +0 -360
  321. package/skills/arc-module-publishing/references/authoring-modules.md +0 -327
@@ -1,6 +1,5 @@
1
1
 
2
- import { c as SerializedEntry, i as Principal, n as FencedWriteOutcome, s as PushRefStore, t as EnvelopeSnapshot } from "../pushref-registry-UxCkoA4C.mjs";
3
- //#region src/integrations/websocket-pushref-redis.d.ts
2
+ import { c as SerializedEntry, i as Principal, n as FencedWriteOutcome, s as PushRefStore, t as EnvelopeSnapshot } from "../pushref-registry-d86QUaSq.mjs";
4
3
  /**
5
4
  * Minimal `ioredis` shape — typed structurally so this file doesn't
6
5
  * take a typecheck-time dep on `ioredis`. The peer dep is declared
@@ -66,5 +65,4 @@ export declare class RedisPushRefStore implements PushRefStore {
66
65
  }): Promise<"ok" | "missing" | "active" | "raw">;
67
66
  gc(_now: number): Promise<number>;
68
67
  size(): Promise<number>;
69
- }
70
- //#endregion
68
+ }
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
- //#region src/integrations/websocket-pushref-redis.ts
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ // src/integrations/websocket-pushref-redis.ts
3
3
  /**
4
4
  * Lua script for atomic claim. Runs server-side, single-roundtrip.
5
5
  *
@@ -202,5 +202,4 @@ var RedisPushRefStore = class {
202
202
  return count;
203
203
  }
204
204
  };
205
- //#endregion
206
205
  export { RedisPushRefStore };
@@ -1,6 +1,5 @@
1
1
 
2
- import { f as WebSocketAdapter } from "../websocket-Cs4awVyD.mjs";
3
- //#region src/integrations/websocket-redis.d.ts
2
+ import { f as WebSocketAdapter } from "../websocket-BGuc-WVZ.mjs";
4
3
  export interface RedisLike {
5
4
  publish(channel: string, message: string): Promise<number>;
6
5
  subscribe(...channels: string[]): Promise<unknown>;
@@ -41,5 +40,4 @@ export declare class RedisWebSocketAdapter implements WebSocketAdapter {
41
40
  publish(room: string, message: string): Promise<void>;
42
41
  subscribe(callback: (room: string, message: string) => void): Promise<void>;
43
42
  close(): Promise<void>;
44
- }
45
- //#endregion
43
+ }
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
- //#region src/integrations/websocket-redis.ts
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ // src/integrations/websocket-redis.ts
3
3
  /**
4
4
  * Redis Pub/Sub adapter for cross-instance WebSocket broadcast.
5
5
  *
@@ -47,5 +47,4 @@ var RedisWebSocketAdapter = class {
47
47
  await this.sub.quit();
48
48
  }
49
49
  };
50
- //#endregion
51
50
  export { RedisWebSocketAdapter };
@@ -1,4 +1,4 @@
1
1
 
2
- import { a as GeoRoomOptions, c as WebSocketClient, d as LocalWebSocketAdapter, f as WebSocketAdapter, i as GeoRoom, l as WebSocketMessage, n as GeoPoint, o as RoomManager, r as GeoPublishOpts, s as AuthResult, t as websocketPlugin, u as WebSocketPluginOptions } from "../websocket-Cs4awVyD.mjs";
3
- import { a as PushRefRegistry, c as SerializedEntry, i as Principal, o as PushRefRegistryOptions, r as MemoryPushRefStore, s as PushRefStore, u as DeadQueueEntry } from "../pushref-registry-UxCkoA4C.mjs";
2
+ import { a as GeoRoomOptions, c as WebSocketClient, d as LocalWebSocketAdapter, f as WebSocketAdapter, i as GeoRoom, l as WebSocketMessage, n as GeoPoint, o as RoomManager, r as GeoPublishOpts, s as AuthResult, t as websocketPlugin, u as WebSocketPluginOptions } from "../websocket-BGuc-WVZ.mjs";
3
+ import { a as PushRefRegistry, c as SerializedEntry, i as Principal, o as PushRefRegistryOptions, r as MemoryPushRefStore, s as PushRefStore, u as DeadQueueEntry } from "../pushref-registry-d86QUaSq.mjs";
4
4
  export { type AuthResult, type DeadQueueEntry, type GeoPoint, type GeoPublishOpts, GeoRoom, type GeoRoomOptions, LocalWebSocketAdapter, MemoryPushRefStore, type Principal, PushRefRegistry, type PushRefRegistryOptions, type PushRefStore, RoomManager, type SerializedEntry, type WebSocketAdapter, type WebSocketClient, type WebSocketMessage, type WebSocketPluginOptions, websocketPlugin };
@@ -1,9 +1,9 @@
1
- /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-D_3eUO6V.mjs";
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-DWqbxkyw.mjs";
3
3
  import { randomUUID } from "node:crypto";
4
4
  import sjson from "secure-json-parse";
5
5
  import fp from "fastify-plugin";
6
- //#region src/integrations/websocket/adapter.ts
6
+ // src/integrations/websocket/adapter.ts
7
7
  /**
8
8
  * Default adapter — no cross-instance broadcast (single-instance only).
9
9
  * All methods are no-ops. Used when no adapter is configured.
@@ -14,8 +14,7 @@ var LocalWebSocketAdapter = class {
14
14
  async subscribe() {}
15
15
  async close() {}
16
16
  };
17
- //#endregion
18
- //#region src/integrations/websocket/geo-room.ts
17
+ // src/integrations/websocket/geo-room.ts
19
18
  let h3Cached;
20
19
  async function loadH3() {
21
20
  if (h3Cached) return h3Cached;
@@ -95,8 +94,7 @@ var GeoRoom = class {
95
94
  return this.h3;
96
95
  }
97
96
  };
98
- //#endregion
99
- //#region src/integrations/websocket/auth.ts
97
+ // src/integrations/websocket/auth.ts
100
98
  function createCaptureReply() {
101
99
  let rejected = false;
102
100
  let capturedStatus;
@@ -225,8 +223,7 @@ var DeadQueue = class {
225
223
  return out;
226
224
  }
227
225
  };
228
- //#endregion
229
- //#region src/integrations/websocket/envelope.ts
226
+ // src/integrations/websocket/envelope.ts
230
227
  /**
231
228
  * Per-pushRef envelope state. One instance per logical session — when
232
229
  * a client reconnects under the same pushRef within TTL, the same
@@ -284,8 +281,7 @@ var EnvelopeWriter = class {
284
281
  return this.dead.snapshot();
285
282
  }
286
283
  };
287
- //#endregion
288
- //#region src/integrations/websocket/pushref-registry.ts
284
+ // src/integrations/websocket/pushref-registry.ts
289
285
  /**
290
286
  * PushRef registry — owns the cross-connection state that has to outlive
291
287
  * a single TCP socket: the per-pushRef envelope writer + dead queue
@@ -635,8 +631,7 @@ function derivePrincipal(args) {
635
631
  if (!args.authMode) return "anon";
636
632
  return null;
637
633
  }
638
- //#endregion
639
- //#region src/integrations/websocket/safe-async.ts
634
+ // src/integrations/websocket/safe-async.ts
640
635
  function safeAsync(p, logger, op, ctx) {
641
636
  p.catch((err) => {
642
637
  logger.warn({
@@ -806,8 +801,7 @@ var SendQueue = class {
806
801
  }
807
802
  }
808
803
  };
809
- //#endregion
810
- //#region src/integrations/websocket/connection.ts
804
+ // src/integrations/websocket/connection.ts
811
805
  /**
812
806
  * Per-connection lifecycle handler.
813
807
  *
@@ -1090,8 +1084,7 @@ async function handleConnection(ctx, socket, request) {
1090
1084
  });
1091
1085
  });
1092
1086
  }
1093
- //#endregion
1094
- //#region src/integrations/websocket/event-bridge.ts
1087
+ // src/integrations/websocket/event-bridge.ts
1095
1088
  /**
1096
1089
  * Subscribe to `<resource>.created|updated|deleted` events for every
1097
1090
  * resource in `resources` and fan them out to the matching room (same
@@ -1152,8 +1145,7 @@ function registerStatsRoute(fastify, rooms, path, expose) {
1152
1145
  } else fastify.log.warn("arc-websocket: exposeStats is \"authenticated\" but fastify.authenticate is not registered — stats endpoint skipped");
1153
1146
  }
1154
1147
  }
1155
- //#endregion
1156
- //#region src/integrations/websocket/outbound-truncate.ts
1148
+ // src/integrations/websocket/outbound-truncate.ts
1157
1149
  /**
1158
1150
  * Outbound payload truncation — mirrors n8n's pattern of capping any
1159
1151
  * single server→client frame at a sane upper bound, replacing oversize
@@ -1202,8 +1194,7 @@ function truncateOutbound(payload, max = DEFAULT_MAX_OUTBOUND_BYTES) {
1202
1194
  function createTruncator(max = DEFAULT_MAX_OUTBOUND_BYTES) {
1203
1195
  return (payload) => truncateOutbound(payload, max);
1204
1196
  }
1205
- //#endregion
1206
- //#region src/integrations/websocket/room-manager.ts
1197
+ // src/integrations/websocket/room-manager.ts
1207
1198
  /**
1208
1199
  * RoomManager — subscription bookkeeping for the WebSocket plugin.
1209
1200
  *
@@ -1473,8 +1464,7 @@ var RoomManager = class {
1473
1464
  };
1474
1465
  }
1475
1466
  };
1476
- //#endregion
1477
- //#region src/integrations/websocket/plugin.ts
1467
+ // src/integrations/websocket/plugin.ts
1478
1468
  const websocketPluginImpl = async (fastify, options) => {
1479
1469
  const { path = "/ws", auth = true, resources = [], heartbeatInterval = 3e4, authenticate: customAuth, maxClientsPerRoom = 1e4, roomPolicy, maxMessageBytes = 16384, maxSubscriptionsPerClient = 100, reauthInterval = 0, adapter, exposeStats = false, onMessage, onConnect, onDisconnect, messageEnvelope = "raw", deadQueueSize = 128, pushRefTtlMs = 6e4, pushRefMaxEntries = 1e4, maxOutboundBytes = DEFAULT_MAX_OUTBOUND_BYTES } = options;
1480
1470
  const truncate = createTruncator(maxOutboundBytes);
@@ -1605,5 +1595,4 @@ const websocketPlugin = fp(websocketPluginImpl, {
1605
1595
  name: "arc-websocket",
1606
1596
  fastify: "5.x"
1607
1597
  });
1608
- //#endregion
1609
1598
  export { GeoRoom, LocalWebSocketAdapter, MemoryPushRefStore, PushRefRegistry, RoomManager, websocketPlugin };
@@ -1,5 +1,4 @@
1
1
 
2
- //#region src/idempotency/stores/interface.d.ts
3
2
  /**
4
3
  * Idempotency Store Interface
5
4
  *
@@ -106,5 +105,4 @@ interface IdempotencyStore {
106
105
  * Helper to create a result object
107
106
  */
108
107
  declare function createIdempotencyResult(statusCode: number, body: unknown, headers: Record<string, string>, ttlMs: number, requestFingerprint?: string): Omit<IdempotencyResult, "key">;
109
- //#endregion
110
108
  export { createIdempotencyResult as a, IdempotencyStore as i, IdempotencyLock as n, IdempotencyResult as r, IdempotencyAcquisition as t };
@@ -1,6 +1,5 @@
1
1
 
2
2
  import { CacheAdapter } from "@classytic/repo-core/cache";
3
- //#region src/cache/interface.d.ts
4
3
  interface CacheLogger {
5
4
  warn(message: string, ...args: unknown[]): void;
6
5
  error(message: string, ...args: unknown[]): void;
@@ -67,5 +66,4 @@ interface CacheStore<TValue = unknown> extends CacheAdapter {
67
66
  /** Cache statistics for observability. Optional. */
68
67
  stats?(): CacheStats;
69
68
  }
70
- //#endregion
71
69
  export { CacheStats as n, CacheStore as r, CacheLogger as t };
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
- import { t as ArcError } from "./errors-BtHzrSA6.mjs";
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ import { t as ArcError } from "./errors-BY8vzlP4.mjs";
3
3
  import sjson from "secure-json-parse";
4
- //#region src/utils/jsonBody.ts
4
+ // src/utils/jsonBody.ts
5
5
  /**
6
6
  * Shared JSON request-body parsing for every arc content-type parser
7
7
  * (`application/json`, `application/scim+json`, decrypted `application/jose`).
@@ -40,5 +40,4 @@ function parseJsonBody(raw, message = "Invalid JSON payload") {
40
40
  });
41
41
  }
42
42
  }
43
- //#endregion
44
43
  export { parseJsonBody as t };
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
2
  import { contentHash } from "@classytic/repo-core/hash";
3
- //#region src/cache/keys.ts
3
+ // src/cache/keys.ts
4
4
  /**
5
5
  * Cache Key Utilities
6
6
  *
@@ -29,5 +29,4 @@ function tagVersionKey(tag) {
29
29
  function hashParams(params) {
30
30
  return contentHash(params, { encoding: "base64url" });
31
31
  }
32
- //#endregion
33
32
  export { versionKey as i, hashParams as n, tagVersionKey as r, buildQueryKey as t };
@@ -1,10 +1,10 @@
1
- /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-DpVPUeXF.mjs";
3
- import { t as arcLog } from "./logger-qQNLlOAU.mjs";
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-Kv1fZdLg.mjs";
3
+ import { t as arcLog } from "./logger-CbFcIEBZ.mjs";
4
4
  import { readdir } from "node:fs/promises";
5
5
  import { dirname, join, resolve } from "node:path";
6
6
  import { fileURLToPath, pathToFileURL } from "node:url";
7
- //#region src/factory/loadResources.ts
7
+ // src/factory/loadResources.ts
8
8
  /**
9
9
  * loadResources — Auto-discover resource files from a directory.
10
10
  *
@@ -177,5 +177,4 @@ async function collectFiles(dir, pattern, recursive) {
177
177
  function escapeRegex(str) {
178
178
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
179
179
  }
180
- //#endregion
181
180
  export { loadResources_exports as n, loadResources as t };
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
- import { t as ResourceRegistry } from "./ResourceRegistry-BBaN_Ne-.mjs";
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ import { t as ResourceRegistry } from "./ResourceRegistry-Douk51fa.mjs";
3
3
  import { resolve } from "node:path";
4
4
  import { pathToFileURL } from "node:url";
5
- //#region src/cli/utils/loadResourcesFromEntry.ts
5
+ // src/cli/utils/loadResourcesFromEntry.ts
6
6
  /**
7
7
  * Shared loader for CLI commands that need to read a host's resource graph
8
8
  * from a built entry file (`introspect`, `docs`, `describe`).
@@ -48,5 +48,4 @@ async function loadResourcesFromEntry(entryPath) {
48
48
  registered
49
49
  };
50
50
  }
51
- //#endregion
52
51
  export { loadResourcesFromEntry as t };
@@ -1,5 +1,4 @@
1
1
 
2
- //#region src/logger/index.d.ts
3
2
  /**
4
3
  * Arc Logger — Centralized debug & warning system
5
4
  *
@@ -114,5 +113,4 @@ export interface PinoLike {
114
113
  * `createApp` installs this automatically so arc-internal warnings flow
115
114
  * through the host's transports, level, and redaction config.
116
115
  */
117
- export declare function createPinoWriter(logger: PinoLike): ArcLogWriter;
118
- //#endregion
116
+ export declare function createPinoWriter(logger: PinoLike): ArcLogWriter;
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
- export { t as arcLog, n as configureArcLogger, r as createPinoWriter, i as runWithArcLogger } from "../logger-qQNLlOAU.mjs";
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ export { t as arcLog, n as configureArcLogger, r as createPinoWriter, i as runWithArcLogger } from "../logger-CbFcIEBZ.mjs";
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
- //#region src/logger/scope.ts
3
+ // src/logger/scope.ts
4
4
  /**
5
5
  * Internal — NOT a package entry. The per-app logger scope that
6
6
  * `@classytic/arc/logger` resolves against, plus the one hook-shaped entry
@@ -30,8 +30,7 @@ const arcLoggerScope = new AsyncLocalStorage();
30
30
  function enterArcLoggerScope(options, done) {
31
31
  arcLoggerScope.run(options, done);
32
32
  }
33
- //#endregion
34
- //#region src/logger/index.ts
33
+ // src/logger/index.ts
35
34
  let globalOptions = {};
36
35
  /** Active options: the app's if we're inside one, else the process fallback. */
37
36
  function resolveOptions() {
@@ -156,5 +155,4 @@ function isSuppressed() {
156
155
  const env = typeof process !== "undefined" ? process.env?.ARC_SUPPRESS_WARNINGS : void 0;
157
156
  return env === "1" || env === "true";
158
157
  }
159
- //#endregion
160
158
  export { enterArcLoggerScope as a, runWithArcLogger as i, configureArcLogger as n, createPinoWriter as r, arcLog as t };
@@ -1,31 +1,31 @@
1
- /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
- import { t as arcLog } from "./logger-qQNLlOAU.mjs";
3
- import { i as NotFoundError, p as isArcError, t as ArcError } from "./errors-BtHzrSA6.mjs";
4
- import { c as BaseController, n as normalizeActionsToRouterConfig, r as resolveActionTargetFence } from "./plugin-ByU3h-bR.mjs";
5
- import { n as requireSingleHeaderValue } from "./headers-Dr-wt6Tr.mjs";
6
- import { b as isElevated, c as getOrgId, g as getUserId, x as isMember } from "./types-BI4sbUJ3.mjs";
7
- import { a as resolveEffectiveRoles, t as applyFieldReadPermissions } from "./fields-C1e_7Fwi.mjs";
8
- import { o as toJsonSchema } from "./schemaConverter-BQbg7loK.mjs";
9
- import { t as buildRequestScopeProjection } from "./projection-BGty6ie4.mjs";
10
- import { l as resolvePipelineSteps, t as resolveActionPermission } from "./actionPermissions-BLnbDA6g.mjs";
11
- import { a as withoutTenantInjection, r as prepareTenantContext } from "./tenantPreparation-DIH-GX4g.mjs";
12
- import { r as evaluatePermissionDecision } from "./authorizationDecision-CVlaTjAX.mjs";
13
- import { n as declareRuntimeCapability } from "./runtimeCapabilities-D_3eUO6V.mjs";
14
- import { t as executePipeline } from "./pipe-B8uq865o.mjs";
15
- import { a as resourceRateLimitWindowMs, i as resolveResourceRateLimiter, t as createMemoryResourceRateLimiter } from "./resourceRateLimit-BBdj5yRq.mjs";
16
- import { n as evictToSize, r as touch, t as assertCapacity } from "./boundedMap-DSy7KkeX.mjs";
17
- import { t as pluralize } from "./pluralize-Cdya8zYt.mjs";
18
- import { n as createIdempotencyResult, r as operationIdentity, t as resolveIdempotencyTiming } from "./timing-q9NITK04.mjs";
19
- import { n as acquireIdempotencyKey, r as releaseIdempotencyLock } from "./acquire-kiZzy5bX.mjs";
20
- import { r as shouldRejectAdditionalProperties, t as normalizeSchemaIR } from "./schemaIR-CUI3hPQR.mjs";
21
- import { n as validateAggregations } from "./validate-Dby08LhR.mjs";
22
- import { n as executeAggregation } from "./buildHandler-B4IhILv9.mjs";
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ import { t as arcLog } from "./logger-CbFcIEBZ.mjs";
3
+ import { i as NotFoundError, p as isArcError, t as ArcError } from "./errors-BY8vzlP4.mjs";
4
+ import { f as BaseController, n as normalizeActionsToRouterConfig, r as resolveActionTargetFence } from "./plugin-DTWt_8C3.mjs";
5
+ import { n as requireSingleHeaderValue } from "./headers-DBd3Qheo.mjs";
6
+ import { b as isElevated, c as getOrgId, g as getUserId, x as isMember } from "./types-CuGjhn83.mjs";
7
+ import { a as resolveEffectiveRoles, t as applyFieldReadPermissions } from "./fields-LnbCcvsw.mjs";
8
+ import { o as toJsonSchema } from "./schemaConverter-DBJrPZN4.mjs";
9
+ import { t as buildRequestScopeProjection } from "./projection-ClBqtsIw.mjs";
10
+ import { l as resolvePipelineSteps, t as resolveActionPermission } from "./actionPermissions-De0AJ7hm.mjs";
11
+ import { a as withoutTenantInjection, r as prepareTenantContext } from "./tenantPreparation-BrpkQre3.mjs";
12
+ import { r as evaluatePermissionDecision } from "./authorizationDecision-DeZMrHcm.mjs";
13
+ import { n as declareRuntimeCapability } from "./runtimeCapabilities-DWqbxkyw.mjs";
14
+ import { t as executePipeline } from "./pipe-Czpw9U2n.mjs";
15
+ import { a as resourceRateLimitWindowMs, i as resolveResourceRateLimiter, t as createMemoryResourceRateLimiter } from "./resourceRateLimit-tHLbrtWc.mjs";
16
+ import { n as evictToSize, r as touch, t as assertCapacity } from "./boundedMap-2WBh3gM9.mjs";
17
+ import { t as pluralize } from "./pluralize-msB9X3yw.mjs";
18
+ import { n as createIdempotencyResult, r as operationIdentity, t as resolveIdempotencyTiming } from "./timing-6rQTuCwg.mjs";
19
+ import { n as acquireIdempotencyKey, r as releaseIdempotencyLock } from "./acquire-RbtvDg9s.mjs";
20
+ import { r as shouldRejectAdditionalProperties, t as normalizeSchemaIR } from "./schemaIR-CEScKT2v.mjs";
21
+ import { n as validateAggregations } from "./validate-4RlTKOJb.mjs";
22
+ import { n as executeAggregation } from "./buildHandler-DxVOOBpw.mjs";
23
23
  import { ARC_ERROR_CODES, isHttpError, toErrorContract } from "@classytic/repo-core/errors";
24
24
  import { createHash, randomUUID } from "node:crypto";
25
25
  import fp from "fastify-plugin";
26
26
  import { IdempotencyError, fingerprintRequest } from "@classytic/repo-core/idempotency";
27
27
  import { z } from "zod";
28
- //#region src/integrations/mcp/createMcpServer.ts
28
+ // src/integrations/mcp/createMcpServer.ts
29
29
  /**
30
30
  * @classytic/arc — createMcpServer()
31
31
  *
@@ -184,8 +184,7 @@ function registerPrompt(server, prompt) {
184
184
  if (prompt.argsSchema) config.argsSchema = prompt.argsSchema;
185
185
  srv.registerPrompt(prompt.name, config, (args) => prompt.handler(args));
186
186
  }
187
- //#endregion
188
- //#region src/integrations/mcp/buildRequestContext.ts
187
+ // src/integrations/mcp/buildRequestContext.ts
189
188
  /**
190
189
  * @classytic/arc — MCP → IRequestContext Bridge
191
190
  *
@@ -407,8 +406,7 @@ function normalizeScopeContext(value) {
407
406
  for (const [k, v] of Object.entries(value)) if (typeof v === "string") out[k] = v;
408
407
  return Object.keys(out).length > 0 ? Object.freeze(out) : void 0;
409
408
  }
410
- //#endregion
411
- //#region src/integrations/mcp/tool-helpers.ts
409
+ // src/integrations/mcp/tool-helpers.ts
412
410
  /**
413
411
  * Evaluate a resource's permission check in MCP context.
414
412
  *
@@ -574,8 +572,7 @@ function createMcpController(resource) {
574
572
  matchesFilter: resource.adapter?.matchesFilter
575
573
  });
576
574
  }
577
- //#endregion
578
- //#region src/integrations/mcp/http-parity.ts
575
+ // src/integrations/mcp/http-parity.ts
579
576
  /**
580
577
  * The gates an HTTP route applies that an MCP tool must apply too, because a tool calls the
581
578
  * controller or action handler directly and skips the route: idempotent execution, the
@@ -704,8 +701,7 @@ async function auditToolAction(audit, args) {
704
701
  }, "[arc/mcp] action audit write failed");
705
702
  }
706
703
  }
707
- //#endregion
708
- //#region src/integrations/mcp/invokeController.ts
704
+ // src/integrations/mcp/invokeController.ts
709
705
  /**
710
706
  * Assemble the {@link McpContextExtras} for a controller invocation from
711
707
  * resource-scoped metadata + app-level wiring. Mirrors what
@@ -863,8 +859,7 @@ function isCallToolResult(value) {
863
859
  function isControllerResponse(value) {
864
860
  return typeof value === "object" && value !== null && "data" in value && !("content" in value);
865
861
  }
866
- //#endregion
867
- //#region src/integrations/mcp/crud-tools.ts
862
+ // src/integrations/mcp/crud-tools.ts
868
863
  const ALL_CRUD_OPS = [
869
864
  "list",
870
865
  "get",
@@ -961,8 +956,7 @@ function resolveCrudDescription(override, meta) {
961
956
  if (typeof override === "string") return override;
962
957
  return override(meta);
963
958
  }
964
- //#endregion
965
- //#region src/integrations/mcp/fieldRulesToZod.ts
959
+ // src/integrations/mcp/fieldRulesToZod.ts
966
960
  /**
967
961
  * @classytic/arc — fieldRules → Zod Shape Converter
968
962
  *
@@ -1119,8 +1113,7 @@ function buildListShape(fieldRules, options) {
1119
1113
  }
1120
1114
  return shape;
1121
1115
  }
1122
- //#endregion
1123
- //#region src/integrations/mcp/authBridge.ts
1116
+ // src/integrations/mcp/authBridge.ts
1124
1117
  /**
1125
1118
  * @classytic/arc — MCP Auth Bridge
1126
1119
  *
@@ -1242,8 +1235,7 @@ async function forwardResponse(reply, response) {
1242
1235
  });
1243
1236
  reply.send(await response.text());
1244
1237
  }
1245
- //#endregion
1246
- //#region src/core/schemaIRZod.ts
1238
+ // src/core/schemaIRZod.ts
1247
1239
  /**
1248
1240
  * Schema IR → Zod adapter — the MCP-facing half of [schemaIR.ts](./schemaIR.ts).
1249
1241
  *
@@ -1297,8 +1289,7 @@ function jsonSchemaPropToZod(schema) {
1297
1289
  default: return z.string();
1298
1290
  }
1299
1291
  }
1300
- //#endregion
1301
- //#region src/integrations/mcp/action-tools.ts
1292
+ // src/integrations/mcp/action-tools.ts
1302
1293
  /**
1303
1294
  * Convert an action's `schema` field into a Zod shape for MCP input.
1304
1295
  *
@@ -1432,8 +1423,7 @@ function createActionToolHandler(actionName, handler, permissions, resourceName,
1432
1423
  }
1433
1424
  };
1434
1425
  }
1435
- //#endregion
1436
- //#region src/integrations/mcp/aggregation-tools.ts
1426
+ // src/integrations/mcp/aggregation-tools.ts
1437
1427
  /**
1438
1428
  * Build MCP tools for a resource's aggregations.
1439
1429
  *
@@ -1556,8 +1546,7 @@ function createAggregationToolHandler(args) {
1556
1546
  return toCallToolError(result.body);
1557
1547
  };
1558
1548
  }
1559
- //#endregion
1560
- //#region src/integrations/mcp/jsonSchemaToZod.ts
1549
+ // src/integrations/mcp/jsonSchemaToZod.ts
1561
1550
  /**
1562
1551
  * @classytic/arc — JSON Schema → Zod shape converter
1563
1552
  *
@@ -1695,8 +1684,7 @@ function applyDescription(zodType, prop) {
1695
1684
  if (typeof prop.description === "string" && prop.description.length > 0) return zodType.describe(prop.description);
1696
1685
  return zodType;
1697
1686
  }
1698
- //#endregion
1699
- //#region src/integrations/mcp/input-schema.ts
1687
+ // src/integrations/mcp/input-schema.ts
1700
1688
  /**
1701
1689
  * MCP tool input schema generation.
1702
1690
  *
@@ -1833,8 +1821,7 @@ function mapJsonSchemaTypeToArcType(jsonType) {
1833
1821
  default: return "string";
1834
1822
  }
1835
1823
  }
1836
- //#endregion
1837
- //#region src/integrations/mcp/route-input-schema.ts
1824
+ // src/integrations/mcp/route-input-schema.ts
1838
1825
  /**
1839
1826
  * Custom-route → MCP tool INPUT schema. The route's own schema is the contract:
1840
1827
  * an input the REST route would refuse must be refused on MCP, never stripped.
@@ -1900,8 +1887,7 @@ function toolInputShape(schema) {
1900
1887
  if (!isZodTypeSchema(schema)) return schema;
1901
1888
  return schema instanceof z.ZodObject ? schema.shape : void 0;
1902
1889
  }
1903
- //#endregion
1904
- //#region src/integrations/mcp/route-tools.ts
1890
+ // src/integrations/mcp/route-tools.ts
1905
1891
  /**
1906
1892
  * Custom-route → MCP tool generation.
1907
1893
  *
@@ -2059,8 +2045,7 @@ function slugifyRoute(method, path) {
2059
2045
  const clean = path.replace(/:[^/]+/g, "").replace(/^\/+|\/+$/g, "").replace(/\//g, "_");
2060
2046
  return clean ? `${method.toLowerCase()}_${clean}` : method.toLowerCase();
2061
2047
  }
2062
- //#endregion
2063
- //#region src/integrations/mcp/resourceToTools.ts
2048
+ // src/integrations/mcp/resourceToTools.ts
2064
2049
  /**
2065
2050
  * @classytic/arc — Resource → MCP Tools orchestrator.
2066
2051
  *
@@ -2303,8 +2288,7 @@ function resourceToTools(resource, config = {}) {
2303
2288
  }
2304
2289
  return tools;
2305
2290
  }
2306
- //#endregion
2307
- //#region src/integrations/mcp/schemaResources.ts
2291
+ // src/integrations/mcp/schemaResources.ts
2308
2292
  /**
2309
2293
  * Register MCP Resources for schema discovery.
2310
2294
  */
@@ -2373,8 +2357,7 @@ function getOps(r, override) {
2373
2357
  if (override) ops = ops.filter((op) => override.includes(op));
2374
2358
  return ops;
2375
2359
  }
2376
- //#endregion
2377
- //#region src/integrations/mcp/sessionCache.ts
2360
+ // src/integrations/mcp/sessionCache.ts
2378
2361
  const DEFAULT_TTL_MS = 18e5;
2379
2362
  const DEFAULT_MAX_SESSIONS = 1e3;
2380
2363
  var McpSessionCache = class {
@@ -2460,8 +2443,7 @@ var McpSessionCache = class {
2460
2443
  } catch {}
2461
2444
  }
2462
2445
  };
2463
- //#endregion
2464
- //#region src/integrations/mcp/mcpPlugin.ts
2446
+ // src/integrations/mcp/mcpPlugin.ts
2465
2447
  /**
2466
2448
  * @classytic/arc — MCP Plugin (Level 1)
2467
2449
  *
@@ -2839,5 +2821,4 @@ const mcpPlugin = fp(mcpPluginImpl, {
2839
2821
  name: "arc-mcp",
2840
2822
  fastify: "5.x"
2841
2823
  });
2842
- //#endregion
2843
2824
  export { resolveToolCollisions as _, toolInputShape as a, resolveCrudDescription as c, permissionDeniedResult as d, toCallToolError as f, createMcpServer as g, buildRequestContext as h, isZodTypeSchema as i, invokeController as l, toCallToolSuccess as m, mcpPlugin as n, fieldRulesToZod as o, toCallToolResult as p, resourceToTools as r, defaultCrudDescription as s, filterResourcesForMcp as t, mcpHandlerAdapter as u };
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-DpVPUeXF.mjs";
3
- import { n as evictToSize } from "./boundedMap-DSy7KkeX.mjs";
4
- //#region src/cache/memory.ts
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-Kv1fZdLg.mjs";
3
+ import { n as evictToSize } from "./boundedMap-2WBh3gM9.mjs";
4
+ // src/cache/memory.ts
5
5
  var memory_exports = /* @__PURE__ */ __exportAll({ MemoryCacheStore: () => MemoryCacheStore });
6
6
  /**
7
7
  * In-memory LRU+TTL cache store with hard entry cap and memory budget.
@@ -183,5 +183,4 @@ function globToRegExp(pattern) {
183
183
  const escaped = pattern.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
184
184
  return new RegExp(`^${escaped}$`);
185
185
  }
186
- //#endregion
187
186
  export { memory_exports as n, MemoryCacheStore as t };
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-DpVPUeXF.mjs";
3
- import { a as MetricHistogram, i as DURATION_BUCKETS_SECONDS, o as MetricSeries, s as renderMetricSample } from "./health-BLYn_Hds.mjs";
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-Kv1fZdLg.mjs";
3
+ import { a as MetricHistogram, i as DURATION_BUCKETS_SECONDS, o as MetricSeries, s as renderMetricSample } from "./health-Dp-3EC9o.mjs";
4
4
  import fp from "fastify-plugin";
5
- //#region src/plugins/metrics.ts
5
+ // src/plugins/metrics.ts
6
6
  var metrics_exports = /* @__PURE__ */ __exportAll({
7
7
  default: () => metrics_default,
8
8
  metricsPlugin: () => metricsPlugin
@@ -188,5 +188,4 @@ var metrics_default = fp(metricsPlugin, {
188
188
  name: "arc-metrics",
189
189
  fastify: "5.x"
190
190
  });
191
- //#endregion
192
191
  export { metrics_exports as n, metrics_default as t };
@@ -1,7 +1,6 @@
1
1
 
2
- import { A as RequestWithExtras, J as MiddlewareConfig, k as MiddlewareHandler } from "../index-WH7xgvxS.mjs";
2
+ import { A as RequestWithExtras, J as MiddlewareConfig, k as MiddlewareHandler } from "../index-DyJFTJLA.mjs";
3
3
  import { RouteHandlerMethod } from "fastify";
4
- //#region src/middleware/middleware.d.ts
5
4
  interface NamedMiddleware {
6
5
  /** Unique name for debugging/introspection */
7
6
  readonly name: string;
@@ -29,8 +28,6 @@ export declare function middleware(name: string, options: MiddlewareOptions): Na
29
28
  * Returns a MiddlewareConfig map keyed by operation, ready to pass to `defineResource()`.
30
29
  */
31
30
  export declare function sortMiddlewares(middlewares: NamedMiddleware[]): MiddlewareConfig;
32
- //#endregion
33
- //#region src/middleware/multipartBody.d.ts
34
31
  /** Parsed file from multipart form-data */
35
32
  interface ParsedFile {
36
33
  /** Original filename */
@@ -121,5 +118,4 @@ interface MultipartBodyOptions {
121
118
  * the wrong architecture regardless of limits.
122
119
  */
123
120
  export declare function multipartBody(options?: MultipartBodyOptions): RouteHandlerMethod;
124
- //#endregion
125
121
  export type { MiddlewareOptions, MultipartBodyOptions, NamedMiddleware, ParsedFile };
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
2
- import { t as CRUD_OPERATIONS } from "../constants-CtWkmWn3.mjs";
3
- import { t as multipartBody } from "../multipartBody-RHvIkNmc.mjs";
4
- //#region src/middleware/middleware.ts
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ import { t as CRUD_OPERATIONS } from "../constants-CHZMUwBW.mjs";
3
+ import { t as multipartBody } from "../multipartBody-B85ek8Kj.mjs";
4
+ // src/middleware/middleware.ts
5
5
  /**
6
6
  * Named Middleware — Priority-based, conditional middleware execution.
7
7
  *
@@ -67,5 +67,4 @@ function sortMiddlewares(middlewares) {
67
67
  }
68
68
  return result;
69
69
  }
70
- //#endregion
71
70
  export { middleware, multipartBody, sortMiddlewares };