@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.
- package/README.md +1 -1
- package/dist/{EventTransport-DHb1tpu-.mjs → EventTransport-BHKy4_Bi.mjs} +5 -6
- package/dist/{EventTransport-CiicKz2Z.d.mts → EventTransport-CYEoCJGe.d.mts} +0 -2
- package/dist/{HookSystem-C1u0EUnt.mjs → HookSystem-CAIDVoKC.mjs} +3 -4
- package/dist/{QueryCache--5uAuYPW.d.mts → QueryCache-DdvrGG8Q.d.mts} +1 -3
- package/dist/{ResourceRegistry-D2jXWVN_.mjs → ResourceRegistry-23Ml6FNe.mjs} +15 -4
- package/dist/{acquire-DTkA8Lme.mjs → acquire-DoFX06fm.mjs} +2 -3
- package/dist/{actionPermissions-DRVk6m7x.mjs → actionPermissions-DXrlWHHK.mjs} +37 -42
- package/dist/audit/index.d.mts +2 -10
- package/dist/audit/index.mjs +8 -12
- package/dist/auth/audit.d.mts +0 -2
- package/dist/auth/audit.mjs +2 -3
- package/dist/auth/index.d.mts +9 -17
- package/dist/auth/index.mjs +26 -29
- package/dist/auth/redis-session.d.mts +2 -4
- package/dist/auth/redis-session.mjs +2 -3
- package/dist/{authorizationDecision-D48fUJv1.mjs → authorizationDecision-DYiubkYw.mjs} +5 -6
- package/dist/{base-CZyixEQR.d.mts → base-HXNgPQww.d.mts} +1 -7
- package/dist/{boundedMap-DkKiPifd.mjs → boundedMap-CtdzpJ3X.mjs} +2 -3
- package/dist/{buildHandler-BiZ4VATS.mjs → buildHandler-CARdmPNo.mjs} +5 -6
- package/dist/cache/index.d.mts +4 -10
- package/dist/cache/index.mjs +5 -6
- package/dist/{caching-Cj0as-P1.mjs → caching-QRiryDLs.mjs} +3 -4
- package/dist/{claimed-ChI13rUR.mjs → claimed-BLecr1j3.mjs} +2 -3
- package/dist/cleanup/index.d.mts +4 -18
- package/dist/cleanup/index.mjs +12 -20
- package/dist/cli/commands/describe.d.mts +1 -3
- package/dist/cli/commands/describe.mjs +4 -5
- package/dist/cli/commands/docs.d.mts +1 -3
- package/dist/cli/commands/docs.mjs +4 -5
- package/dist/cli/commands/doctor.d.mts +1 -3
- package/dist/cli/commands/doctor.mjs +2 -3
- package/dist/cli/commands/generate.d.mts +1 -1
- package/dist/cli/commands/generate.mjs +2 -2
- package/dist/cli/commands/init.d.mts +1 -1
- package/dist/cli/commands/init.mjs +2 -2
- package/dist/cli/commands/introspect.d.mts +1 -3
- package/dist/cli/commands/introspect.mjs +3 -4
- package/dist/cli/index.d.mts +2 -2
- package/dist/cli/index.mjs +3 -3
- package/dist/{constants-D_aiew34.mjs → constants-Cx7BcnHT.mjs} +2 -3
- package/dist/context/index.d.mts +0 -8
- package/dist/context/index.mjs +6 -7
- package/dist/core/index.d.mts +3 -3
- package/dist/core/index.mjs +8 -8
- package/dist/{core-QIZ2560Y.mjs → core-0WyMuo0f.mjs} +9 -12
- package/dist/{createActionRouter-CvH84dyx.mjs → createActionRouter-mLAGbpDV.mjs} +7 -8
- package/dist/{createAggregationRouter-DGyK2Hp6.mjs → createAggregationRouter-BEAjn3dA.mjs} +9 -10
- package/dist/{createApp-CKjZpmq9.mjs → createApp-QDP4vYWH.mjs} +49 -62
- package/dist/{createMcpServer-DSztofa9.d.mts → createMcpServer-DzXHX0SO.d.mts} +1 -3
- package/dist/{defineAggregation-BLza7Ca4.mjs → defineAggregation-CFNfvz-C.mjs} +2 -3
- package/dist/{defineResource-CEo0gDCb.mjs → defineResource-BROJmhzJ.mjs} +80 -29
- package/dist/discovery/index.d.mts +1 -3
- package/dist/discovery/index.mjs +2 -3
- package/dist/docs/index.d.mts +8 -8
- package/dist/docs/index.mjs +4 -5
- package/dist/{elevation-BW2J3tNj.d.mts → elevation-DPD0hcU-.d.mts} +0 -2
- package/dist/{elevation-BJTsSnke.mjs → elevation-DrXeEWWk.mjs} +9 -10
- package/dist/encryption/index.d.mts +1 -7
- package/dist/encryption/index.mjs +8 -13
- package/dist/{errorHandler--4rSMMvq.d.mts → errorHandler-B9r88jZV.d.mts} +8 -3
- package/dist/{errorHandler-2p4SL5zm.mjs → errorHandler-BiBXtxj4.mjs} +16 -6
- package/dist/{errors-JYc9vwqE.d.mts → errors-DTo0me1o.d.mts} +0 -2
- package/dist/{errors-grZkIA8N.mjs → errors-DnrUChAy.mjs} +2 -3
- package/dist/{eventPlugin-BtmA4-3P.d.mts → eventPlugin-BY38F6yK.d.mts} +1 -7
- package/dist/{eventPlugin-ItcYBGUs.mjs → eventPlugin-BhKLUe7H.mjs} +10 -12
- package/dist/{eventTypes-Ck6fD3ne.mjs → eventTypes-CCIRGakw.mjs} +5 -8
- package/dist/events/index.d.mts +5 -17
- package/dist/events/index.mjs +9 -9
- package/dist/events/transports/redis-stream-entry.d.mts +1 -1
- package/dist/events/transports/redis-stream-entry.mjs +5 -6
- package/dist/events/transports/redis.d.mts +2 -4
- package/dist/events/transports/redis.mjs +3 -4
- package/dist/{externalPaths-CmGOxOtD.d.mts → externalPaths-BOqdq5wr.d.mts} +0 -2
- package/dist/factory/index.d.mts +4 -14
- package/dist/factory/index.mjs +12 -18
- package/dist/{fastify-augmentation-DRlCIWE9.d.mts → fastify-augmentation-bzkWPt1f.d.mts} +4 -10
- package/dist/{fields-BRX0Krcj.mjs → fields-CYdpcV73.mjs} +2 -3
- package/dist/{fields-BBSpf8pS.d.mts → fields-JTkrtO-r.d.mts} +0 -2
- package/dist/{filter-merge-CDc7YMwX.mjs → filter-merge-6kasezRH.mjs} +2 -3
- package/dist/{generate-DCGuEbqI.d.mts → generate-C-g_KOkV.d.mts} +0 -4
- package/dist/{generate-hvg7V2g1.mjs → generate-DUkcbc4r.mjs} +7 -12
- package/dist/{headers-Cqkg4LzI.mjs → headers-KxhrKevA.mjs} +3 -4
- package/dist/{health-PVt0VjOx.mjs → health-CRJg3IIq.mjs} +2 -3
- package/dist/{health-DyeP3mTW.mjs → health-jkYNdobJ.mjs} +4 -7
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/http-cache/index.d.mts +211 -0
- package/dist/http-cache/index.mjs +605 -0
- package/dist/http-cache/purgers/cloudflare.d.mts +13 -0
- package/dist/http-cache/purgers/cloudflare.mjs +46 -0
- package/dist/http-cache/purgers/fastly.d.mts +12 -0
- package/dist/http-cache/purgers/fastly.mjs +47 -0
- package/dist/http-cache/testing/index.d.mts +68 -0
- package/dist/http-cache/testing/index.mjs +168 -0
- package/dist/idempotency/index.d.mts +3 -9
- package/dist/idempotency/index.mjs +11 -14
- package/dist/idempotency/redis.d.mts +1 -1
- package/dist/idempotency/redis.mjs +3 -4
- package/dist/{index-Bxriq3so.d.mts → index-B5i9-vuP.d.mts} +4 -26
- package/dist/{index-Chgz3d0i.d.mts → index-BAXDo5eE.d.mts} +1 -7
- package/dist/{index-Beg3aNnK.d.mts → index-BxZS-8So.d.mts} +67 -25
- package/dist/{index-WH7xgvxS.d.mts → index-Cy2-QffW.d.mts} +40 -92
- package/dist/{index-uhkUA5-U.d.mts → index-D1X_C_qz.d.mts} +13 -23
- package/dist/{index-CUJvoyw3.d.mts → index-DFCCQ9AE.d.mts} +2 -24
- package/dist/index.d.mts +7 -9
- package/dist/index.mjs +12 -13
- package/dist/{init-jC3rMPzb.mjs → init-CACwpktI.mjs} +18 -35
- package/dist/{init-Cscs4lab.d.mts → init-CV2_Fw3H.d.mts} +0 -4
- package/dist/integrations/event-gateway.d.mts +3 -5
- package/dist/integrations/event-gateway.mjs +3 -4
- package/dist/integrations/index.d.mts +3 -3
- package/dist/integrations/index.mjs +1 -1
- package/dist/integrations/jobs/index.d.mts +1 -1
- package/dist/integrations/jobs/index.mjs +7 -11
- package/dist/integrations/mcp/index.d.mts +7 -39
- package/dist/integrations/mcp/index.mjs +8 -14
- package/dist/integrations/mcp/testing.d.mts +3 -5
- package/dist/integrations/mcp/testing.mjs +3 -4
- package/dist/integrations/streamline.d.mts +1 -3
- package/dist/integrations/streamline.mjs +4 -5
- package/dist/integrations/webhooks.d.mts +2 -4
- package/dist/integrations/webhooks.mjs +5 -5
- package/dist/integrations/websocket-pushref-redis.d.mts +2 -4
- package/dist/integrations/websocket-pushref-redis.mjs +2 -3
- package/dist/integrations/websocket-redis.d.mts +2 -4
- package/dist/integrations/websocket-redis.mjs +2 -3
- package/dist/integrations/websocket.d.mts +2 -2
- package/dist/integrations/websocket.mjs +13 -24
- package/dist/{interface-JJzwH4Ro.d.mts → interface-BmExzQRD.d.mts} +0 -2
- package/dist/{interface-BOk3YnTz.d.mts → interface-WR1U0K7t.d.mts} +0 -2
- package/dist/{jsonBody-ptwyzZQ-.mjs → jsonBody-CzDBkCme.mjs} +3 -4
- package/dist/{keys-C1vFuSbv.mjs → keys-Cbwf6r1B.mjs} +2 -3
- package/dist/{loadResources-CHPDyIPn.mjs → loadResources-Kr6vuljv.mjs} +4 -5
- package/dist/{loadResourcesFromEntry-BkHHTu_B.mjs → loadResourcesFromEntry-D2e0qoDR.mjs} +3 -4
- package/dist/logger/index.d.mts +1 -3
- package/dist/logger/index.mjs +2 -2
- package/dist/{logger-C5bvCiAK.mjs → logger-C110X5Yz.mjs} +3 -5
- package/dist/{mcpPlugin-C9qohJCF.mjs → mcpPlugin-4lIPr9OJ.mjs} +41 -60
- package/dist/{memory-CxiTwT0j.mjs → memory-D9qkhXiB.mjs} +4 -5
- package/dist/{metrics-Ckp2zRy-.mjs → metrics-B-qrrWfI.mjs} +4 -5
- package/dist/middleware/index.d.mts +1 -5
- package/dist/middleware/index.mjs +4 -5
- package/dist/migrations/index.d.mts +0 -2
- package/dist/migrations/index.mjs +3 -4
- package/dist/{module-CfnKuIuH.mjs → module-BD8xHgrz.mjs} +2 -3
- package/dist/{multiTenant-CAtYlW6H.d.mts → multiTenant-KZj8j1uJ.d.mts} +1 -5
- package/dist/{multipartBody-BFasGtP9.mjs → multipartBody-qU7KCn1l.mjs} +2 -3
- package/dist/observeSend-BnPtTotW.mjs +20 -0
- package/dist/{openapi-DAPxjYHX.mjs → openapi-DoVa5SVP.mjs} +18 -28
- package/dist/outbox-admin/index.d.mts +2 -4
- package/dist/outbox-admin/index.mjs +6 -7
- package/dist/{outbox-module-gZCHoE4H.d.mts → outbox-module-5Mnwcycy.d.mts} +3 -9
- package/dist/outbox-module-DyITEIop.mjs +297 -0
- package/dist/permissions/index.d.mts +4 -4
- package/dist/permissions/index.mjs +7 -7
- package/dist/{permissions-B14c3OMp.mjs → permissions-BBy4bOGi.mjs} +19 -29
- package/dist/{pipe-CQv7PsAK.mjs → pipe-BOm2o4UA.mjs} +3 -4
- package/dist/pipeline/index.d.mts +1 -9
- package/dist/pipeline/index.mjs +5 -8
- package/dist/{plan-CpnTykjb.mjs → plan-DDIGwuxr.mjs} +5 -9
- package/dist/{plugin-DXTjVg_Q.mjs → plugin-Bn4D_0XK.mjs} +156 -64
- package/dist/plugins/index.d.mts +8 -16
- package/dist/plugins/index.mjs +22 -26
- package/dist/plugins/response-cache.d.mts +2 -4
- package/dist/plugins/response-cache.mjs +10 -10
- package/dist/plugins/tracing-entry.d.mts +1 -1
- package/dist/plugins/tracing-entry.mjs +3 -4
- package/dist/{pluralize-C3VJKRGp.mjs → pluralize-ClEjcKlG.mjs} +2 -3
- package/dist/policy.types-DPqToKG1.d.mts +50 -0
- package/dist/presets/filesUpload.d.mts +4 -6
- package/dist/presets/filesUpload.mjs +6 -7
- package/dist/presets/index.d.mts +3 -19
- package/dist/presets/index.mjs +2 -2
- package/dist/presets/multiTenant.d.mts +1 -1
- package/dist/presets/multiTenant.mjs +7 -7
- package/dist/presets/search.d.mts +3 -5
- package/dist/presets/search.mjs +3 -4
- package/dist/{presets-CquqYJPy.mjs → presets-DK2jh5YR.mjs} +11 -18
- package/dist/{projection-CgfSLOSM.mjs → projection-BHH-sXyS.mjs} +3 -4
- package/dist/purger.types-2wNJK_89.mjs +24 -0
- package/dist/purger.types-DvPp4-yd.d.mts +26 -0
- package/dist/{pushref-registry-UxCkoA4C.d.mts → pushref-registry-d86QUaSq.d.mts} +0 -6
- package/dist/{queryCachePlugin-D0HUISHJ.mjs → queryCachePlugin-Ckqe98AM.mjs} +8 -10
- package/dist/{queryCachePlugin-C2lZjTxk.d.mts → queryCachePlugin-DYQUyeJ9.d.mts} +2 -4
- package/dist/{rateLimitKey-AvkBOMkl.mjs → rateLimitKey-CWAjlqcN.mjs} +2 -3
- package/dist/{realtime-CbWtVbqK.mjs → realtime-BIJi9USY.mjs} +17 -19
- package/dist/{redis-BDgv9Glw.d.mts → redis-RpDMemdm.d.mts} +2 -4
- package/dist/{redis-stream-BMk-bpQS.d.mts → redis-stream-CS1N9dwM.d.mts} +1 -3
- package/dist/{redisShapes-CQksY67q.d.mts → redisShapes-CqBXTn_s.d.mts} +0 -2
- package/dist/registry/index.d.mts +2 -12
- package/dist/registry/index.mjs +3 -3
- package/dist/{registry-BVwpAuFI.mjs → registry-y9ZA-R_J.mjs} +7 -12
- package/dist/{outbox-module-B4FAkx3A.mjs → relay-BNrC1CEP.mjs} +8 -306
- package/dist/{renewingLease-CykpeNcQ.mjs → renewingLease-CS43br5E.mjs} +2 -3
- package/dist/{replyHelpers-DA51IZio.mjs → replyHelpers-oZDzakGb.mjs} +3 -4
- package/dist/{requestContext-DIWHKDtQ.mjs → requestContext-fWb_YaV2.mjs} +2 -3
- package/dist/{requirement-Cp_fsMDL.mjs → requirement--2hWyyHi.mjs} +2 -3
- package/dist/{requirement-CbiLdQ1n.d.mts → requirement-CTRQjjQx.d.mts} +0 -2
- package/dist/{resourceRateLimit-BFuluodF.mjs → resourceRateLimit-1WbcyMZY.mjs} +3 -4
- package/dist/{resourceRateLimit-Wf6d6FL9.d.mts → resourceRateLimit-DCWglD7V.d.mts} +1 -3
- package/dist/{rolldown-runtime-D_lMdYOd.mjs → rolldown-runtime-yH2lHMo_.mjs} +2 -3
- package/dist/{routeValidator-DuLonYwr.mjs → routeValidator-BSlRIA5c.mjs} +2 -3
- package/dist/{runtimeCapabilities-CydRfm0i.mjs → runtimeCapabilities-CYCEtU1W.mjs} +2 -3
- package/dist/{schedules-B693KXxa.mjs → schedules-B5WGlYIT.mjs} +132 -9
- package/dist/{schemaConverter-DNvZWTV6.mjs → schemaConverter-DtNvts-6.mjs} +3 -4
- package/dist/{schemaIR-REV2y7Wd.mjs → schemaIR-uS_RHqa3.mjs} +3 -4
- package/dist/schemas/index.d.mts +0 -2
- package/dist/schemas/index.mjs +2 -3
- package/dist/scim/index.d.mts +0 -12
- package/dist/scim/index.mjs +10 -18
- package/dist/scope/index.d.mts +2 -6
- package/dist/scope/index.mjs +5 -5
- package/dist/{scope-Bevxy_ST.mjs → scope-BwVLSyNG.mjs} +5 -6
- package/dist/{sessionManager-qimlKV0P.d.mts → sessionManager-CdvDF04x.d.mts} +2 -4
- package/dist/{shutdown-CfrqPR7A.mjs → shutdown-BJiJN7FT.mjs} +2 -3
- package/dist/{simpleEqualityMatcher-BJwfuRKP.mjs → simpleEqualityMatcher-DGRLq-1k.mjs} +2 -3
- package/dist/{sse-CuNNWr2z.mjs → sse-B_50llZu.mjs} +8 -9
- package/dist/{sseStream-C_2ujAVY.mjs → sseStream-BjSo9Ult.mjs} +3 -4
- package/dist/{storage-Cx9Sz3Ou.d.mts → storage-odC5MNKN.d.mts} +0 -2
- package/dist/{store-helpers-C8uBGCbb.mjs → store-helpers-D-n5cwy5.mjs} +2 -3
- package/dist/{streaming-Bdq_M4d5.mjs → streaming-Dcgqa-hH.mjs} +2 -3
- package/dist/{subscriberIdentity-B-KpZkdl.mjs → subscriberIdentity-C9KhIXTF.mjs} +2 -3
- package/dist/{tenancy-C5PCvm1h.mjs → tenancy-COrhjPRZ.mjs} +3 -4
- package/dist/{tenantPreparation-dYvWrgNa.mjs → tenantPreparation-BElWHytd.mjs} +5 -6
- package/dist/testing/cleanupStoreContract.d.mts +2 -4
- package/dist/testing/cleanupStoreContract.mjs +2 -3
- package/dist/testing/index.d.mts +6 -32
- package/dist/testing/index.mjs +24 -37
- package/dist/testing/outboxStoreContract.d.mts +1 -3
- package/dist/testing/outboxStoreContract.mjs +3 -4
- package/dist/testing/requiredPorts.d.mts +2 -4
- package/dist/testing/requiredPorts.mjs +3 -4
- package/dist/testing/storageContract.d.mts +2 -4
- package/dist/testing/storageContract.mjs +2 -3
- package/dist/{timing-DCqsezX8.mjs → timing-CaxKbRk_.mjs} +3 -5
- package/dist/{tracing-Dro5eH6j.d.mts → tracing-JSFiBl5r.d.mts} +0 -2
- package/dist/{transactionContext-DrcNyjpv.mjs → transactionContext-8qKON0Nk.mjs} +2 -3
- package/dist/{typeGuards-CEl10KPy.mjs → typeGuards-DVjVSsXO.mjs} +2 -3
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.mjs +1 -1
- package/dist/types/storage.d.mts +1 -1
- package/dist/types/storage.mjs +1 -1
- package/dist/{types-ByHn9rEO.d.mts → types-0Dqlbgn8.d.mts} +0 -2
- package/dist/{types-BJ-2XqVF.d.mts → types-BeEJm-DV.d.mts} +114 -14
- package/dist/{types-DVLddu2q.d.mts → types-C0YJAiL0.d.mts} +0 -2
- package/dist/{types-D9NWjpYc.mjs → types-DZHqOuJE.mjs} +5 -6
- package/dist/{types-D3Ixsh00.d.mts → types-DeLiuaNv.d.mts} +2 -4
- package/dist/{types-Ddl9OjmE.d.mts → types-DnkIALZ8.d.mts} +0 -4
- package/dist/usage/index.d.mts +2 -10
- package/dist/usage/index.mjs +8 -12
- package/dist/{userHelpers-BHig1kHq.mjs → userHelpers-_eGj6kf0.mjs} +2 -3
- package/dist/utils/index.d.mts +5 -39
- package/dist/utils/index.mjs +12 -12
- package/dist/{utils-BG5P7_Vb.mjs → utils-Dd6MWpye.mjs} +20 -30
- package/dist/{validate-D_mdOCir.mjs → validate-BaF5wd0x.mjs} +5 -7
- package/dist/{versioning-DBGHjPh7.mjs → versioning-DyV7mwtK.mjs} +4 -5
- package/dist/{versioning-Bqm_57Qt.d.mts → versioning-S18y2-0C.d.mts} +1 -15
- package/dist/{websocket-Cs4awVyD.d.mts → websocket-BGuc-WVZ.d.mts} +1 -15
- package/dist/{workScope-DPPfM4m6.mjs → workScope-CmCBUmPR.mjs} +3 -4
- package/llms.txt +37 -30
- package/package.json +51 -22
- package/skills/arc/SKILL.md +65 -844
- package/skills/arc/references/agent-auth.md +82 -193
- package/skills/arc/references/api-reference.md +41 -245
- package/skills/arc/references/auth-api-keys.md +99 -0
- package/skills/arc/references/auth-better-auth-overlay.md +87 -0
- package/skills/arc/references/auth-better-auth.md +78 -0
- package/skills/arc/references/auth-permissions.md +100 -0
- package/skills/arc/references/auth-strategies.md +122 -0
- package/skills/arc/references/boot.md +80 -0
- package/skills/arc/references/enterprise-auth.md +65 -81
- package/skills/arc/references/events-outbox.md +90 -0
- package/skills/arc/references/events.md +75 -440
- package/skills/arc/references/integrations-jobs.md +74 -0
- package/skills/arc/references/integrations-realtime.md +84 -0
- package/skills/arc/references/integrations-webhooks.md +71 -0
- package/skills/arc/references/integrations-workflows.md +47 -0
- package/skills/arc/references/mcp-auth.md +83 -0
- package/skills/arc/references/mcp-custom-tools.md +125 -0
- package/skills/arc/references/mcp-setup.md +115 -0
- package/skills/arc/references/mcp-testing.md +63 -0
- package/skills/arc/references/multi-tenancy.md +56 -230
- package/skills/arc/references/permissions-scope.md +81 -0
- package/skills/arc/references/production-api.md +119 -0
- package/skills/arc/references/production-audit.md +101 -0
- package/skills/arc/references/production-boot.md +91 -0
- package/skills/arc/references/production-caching.md +63 -0
- package/skills/arc/references/production-distributed.md +75 -0
- package/skills/arc/references/production-idempotency.md +83 -0
- package/skills/arc/references/production-observability.md +83 -0
- package/skills/arc/references/production-realtime.md +70 -0
- package/skills/arc/references/production-reliability.md +100 -0
- package/skills/arc/references/production-shutdown.md +43 -0
- package/skills/arc/references/querying.md +76 -0
- package/skills/arc/references/resources.md +97 -0
- package/skills/arc/references/schedules.md +79 -0
- package/skills/arc/references/scim.md +61 -208
- package/skills/arc/references/tenancy-scope-install.md +82 -0
- package/skills/arc/references/testing.md +101 -144
- package/skills/arc/references/usage-cleanup-capabilities.md +45 -0
- package/skills/arc/references/validation.md +91 -0
- package/skills/arc/references/writes-hooks-errors.md +80 -0
- package/skills/arc-code-review/SKILL.md +67 -114
- package/skills/arc-code-review/references/arc-cheatsheet.md +68 -167
- package/skills/arc-code-review/references/mongokit-repositories.md +104 -0
- package/skills/arc-code-review/references/recipe-events-cache-jobs.md +112 -0
- package/skills/arc-code-review/references/recipe-resource.md +100 -0
- package/skills/arc-code-review/references/recipe-schemas-fields.md +93 -0
- package/skills/arc-code-review/references/recipe-scope-permissions.md +82 -0
- package/skills/arc-code-review/references/scaffolding.md +61 -198
- package/skills/arc-code-review/references/severity.md +49 -102
- package/skills/arc-code-review/references/smells-auth-scope.md +80 -0
- package/skills/arc-code-review/references/smells-data-events.md +66 -0
- package/skills/arc-code-review/references/smells-imports-style.md +59 -0
- package/skills/arc-code-review/references/smells-platform.md +89 -0
- package/skills/arc-code-review/references/smells-routes-schemas.md +66 -0
- package/skills/arc-module-publishing/SKILL.md +82 -208
- package/skills/arc-module-publishing/references/action-presets-and-plugins.md +87 -0
- package/skills/arc-module-publishing/references/build-and-types.md +73 -0
- package/skills/arc-module-publishing/references/module-lifecycle.md +101 -0
- package/skills/arc-module-publishing/references/package-manifest.md +34 -122
- package/skills/arc-module-publishing/references/publishing-workflow.md +44 -140
- package/skills/arc-module-publishing/references/resource-assembly.md +102 -0
- package/skills/arc-module-publishing/references/testing-packages.md +82 -0
- package/skills/arc/references/auth.md +0 -729
- package/skills/arc/references/integrations.md +0 -452
- package/skills/arc/references/mcp.md +0 -691
- package/skills/arc/references/production.md +0 -835
- package/skills/arc-code-review/references/anti-patterns.md +0 -1008
- package/skills/arc-code-review/references/migration-recipes.md +0 -649
- package/skills/arc-code-review/references/mongokit-migration.md +0 -360
- package/skills/arc-module-publishing/references/authoring-modules.md +0 -327
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
import { Mt as Authenticator } from "./index-
|
|
3
|
-
import { r as CacheStore } from "./interface-
|
|
4
|
-
import { n as ElevationOptions } from "./elevation-
|
|
5
|
-
import { a as EventTransport } from "./EventTransport-
|
|
6
|
-
import { t as ExternalOpenApiPaths } from "./externalPaths-
|
|
7
|
-
import { r as QueryCachePluginOptions } from "./queryCachePlugin-
|
|
8
|
-
import { t as ErrorHandlerOptions } from "./errorHandler
|
|
9
|
-
import {
|
|
10
|
-
import { H as ModuleGraphOptions } from "./index-
|
|
11
|
-
import { t as EventPluginOptions } from "./eventPlugin-
|
|
12
|
-
import { a as MetricsOptions, c as RealtimeOptions, g as GracefulShutdownOptions, p as CachingOptions, t as VersioningOptions, u as SSEOptions } from "./versioning-
|
|
13
|
-
import { i as IdempotencyStore } from "./interface-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
4
|
-
import { a as applyFieldReadPermissions, n as FieldPermissionMap, o as applyFieldWritePermissions, s as fields, t as FieldPermission } from "./fields-
|
|
5
|
-
import "./fastify-augmentation-
|
|
6
|
-
import {
|
|
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-
|
|
8
|
-
import { a as NotFoundError, d as ValidationError, f as createDomainError, i as ForbiddenError, t as ArcError, u as UnauthorizedError } from "./errors-
|
|
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.
|
|
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-
|
|
3
|
-
import { d as createDomainError, i as NotFoundError, l as UnauthorizedError, r as ForbiddenError, t as ArcError, u as ValidationError } from "./errors-
|
|
4
|
-
import {
|
|
5
|
-
import { t as defineAggregation } from "./defineAggregation-
|
|
6
|
-
import { i as fields, n as applyFieldWritePermissions, t as applyFieldReadPermissions } from "./fields-
|
|
7
|
-
import { S as getControllerScope } from "./actionPermissions-
|
|
8
|
-
import { a as defineResourceVariants, o as mergeResourceConfig, s as defineAction } from "./core-
|
|
9
|
-
import { a as ResourceDefinition, t as defineResource } from "./defineResource-
|
|
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-
|
|
11
|
-
|
|
12
|
-
const version = "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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
3
|
-
import { c as WebSocketClient, l as WebSocketMessage } from "../websocket-
|
|
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.
|
|
1
|
+
/*! @classytic/arc v2.47.0 | MIT | https://classytic.com */
|
|
2
2
|
import fp from "fastify-plugin";
|
|
3
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
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-
|
|
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.
|
|
2
|
-
import { n as evaluateAndApplyPermission } from "../../authorizationDecision-
|
|
3
|
-
import { i as runAdmittedWork, r as registerShutdownParticipant } from "../../shutdown-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 };
|