@classytic/arc 2.45.2 → 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.
- package/README.md +1 -1
- package/dist/{EventTransport-CiicKz2Z.d.mts → EventTransport-CYEoCJGe.d.mts} +0 -2
- package/dist/{EventTransport-DHb1tpu-.mjs → EventTransport-DNgD9NP4.mjs} +3 -4
- package/dist/{HookSystem-C1u0EUnt.mjs → HookSystem-DRbPzEcP.mjs} +3 -4
- package/dist/{QueryCache--5uAuYPW.d.mts → QueryCache-DdvrGG8Q.d.mts} +1 -3
- package/dist/{ResourceRegistry-D2jXWVN_.mjs → ResourceRegistry-Douk51fa.mjs} +15 -4
- package/dist/{acquire-DTkA8Lme.mjs → acquire-RbtvDg9s.mjs} +2 -3
- package/dist/{actionPermissions-DRVk6m7x.mjs → actionPermissions-De0AJ7hm.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-DeZMrHcm.mjs} +5 -6
- package/dist/{base-CZyixEQR.d.mts → base-HXNgPQww.d.mts} +1 -7
- package/dist/{boundedMap-DkKiPifd.mjs → boundedMap-2WBh3gM9.mjs} +2 -3
- package/dist/{buildHandler-BiZ4VATS.mjs → buildHandler-DxVOOBpw.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-BYRwYrUo.mjs} +3 -4
- package/dist/{claimed-ChI13rUR.mjs → claimed-DYlELdnm.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-CHZMUwBW.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-D9rS2BxO.mjs} +9 -12
- package/dist/{createActionRouter-CvH84dyx.mjs → createActionRouter-0qkCRzTL.mjs} +7 -8
- package/dist/{createAggregationRouter-DGyK2Hp6.mjs → createAggregationRouter-CUf5Esd9.mjs} +9 -10
- package/dist/{createApp-CKjZpmq9.mjs → createApp-DZIXfDKD.mjs} +49 -62
- package/dist/{createMcpServer-DSztofa9.d.mts → createMcpServer-DeVpqQF-.d.mts} +1 -3
- package/dist/{defineAggregation-BLza7Ca4.mjs → defineAggregation-bmKQ4NmC.mjs} +2 -3
- package/dist/{defineResource-CEo0gDCb.mjs → defineResource-CGmdmGwh.mjs} +78 -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-BJTsSnke.mjs → elevation-CzhqAyVN.mjs} +9 -10
- package/dist/{elevation-BW2J3tNj.d.mts → elevation-DPD0hcU-.d.mts} +0 -2
- 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-dFyGOEoB.mjs} +16 -6
- package/dist/{errors-grZkIA8N.mjs → errors-BY8vzlP4.mjs} +2 -3
- package/dist/{errors-JYc9vwqE.d.mts → errors-DTo0me1o.d.mts} +0 -2
- package/dist/{eventPlugin-BtmA4-3P.d.mts → eventPlugin-BY38F6yK.d.mts} +1 -7
- package/dist/{eventPlugin-ItcYBGUs.mjs → eventPlugin-eMhAPtQA.mjs} +10 -12
- package/dist/{eventTypes-Ck6fD3ne.mjs → eventTypes-Do2KYeJx.mjs} +5 -8
- package/dist/events/index.d.mts +4 -16
- package/dist/events/index.mjs +8 -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-Dtn0IIRn.d.mts} +4 -10
- package/dist/{fields-BBSpf8pS.d.mts → fields-JTkrtO-r.d.mts} +0 -2
- package/dist/{fields-BRX0Krcj.mjs → fields-LnbCcvsw.mjs} +2 -3
- package/dist/{filter-merge-CDc7YMwX.mjs → filter-merge-BAWi019Q.mjs} +2 -3
- package/dist/{generate-DCGuEbqI.d.mts → generate-C-g_KOkV.d.mts} +0 -4
- package/dist/{generate-hvg7V2g1.mjs → generate-oXoDnpJf.mjs} +7 -12
- package/dist/{headers-Cqkg4LzI.mjs → headers-DBd3Qheo.mjs} +3 -4
- package/dist/{health-PVt0VjOx.mjs → health-BlJu9GXS.mjs} +2 -3
- package/dist/{health-DyeP3mTW.mjs → health-Dp-3EC9o.mjs} +4 -7
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/idempotency/index.d.mts +3 -9
- package/dist/idempotency/index.mjs +10 -13
- 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-BTxzJ_MN.d.mts} +67 -25
- package/dist/{index-CUJvoyw3.d.mts → index-Bqfo8hLz.d.mts} +2 -24
- package/dist/{index-uhkUA5-U.d.mts → index-CUdaoCYt.d.mts} +13 -23
- package/dist/{index-WH7xgvxS.d.mts → index-DyJFTJLA.d.mts} +31 -92
- package/dist/index.d.mts +7 -9
- package/dist/index.mjs +12 -13
- package/dist/{init-jC3rMPzb.mjs → init-BOaNkLYb.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 +4 -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-DpRpKR_K.mjs} +3 -4
- package/dist/{keys-C1vFuSbv.mjs → keys-FBz6Ull-.mjs} +2 -3
- package/dist/{loadResources-CHPDyIPn.mjs → loadResources-Bx1sKPnF.mjs} +4 -5
- package/dist/{loadResourcesFromEntry-BkHHTu_B.mjs → loadResourcesFromEntry-b_jcqbxh.mjs} +3 -4
- package/dist/logger/index.d.mts +1 -3
- package/dist/logger/index.mjs +2 -2
- package/dist/{logger-C5bvCiAK.mjs → logger-CbFcIEBZ.mjs} +3 -5
- package/dist/{mcpPlugin-C9qohJCF.mjs → mcpPlugin-yix548XX.mjs} +41 -60
- package/dist/{memory-CxiTwT0j.mjs → memory-Bgw5dn8N.mjs} +4 -5
- package/dist/{metrics-Ckp2zRy-.mjs → metrics-CZDQWVjS.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-Dsc_nKL5.mjs} +2 -3
- package/dist/{multiTenant-CAtYlW6H.d.mts → multiTenant-XCxAUlru.d.mts} +1 -5
- package/dist/{multipartBody-BFasGtP9.mjs → multipartBody-B85ek8Kj.mjs} +2 -3
- package/dist/observeSend-BK-JN1jK.mjs +20 -0
- package/dist/{openapi-DAPxjYHX.mjs → openapi-Co7hl073.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-XvUThpqn.d.mts} +2 -8
- package/dist/{outbox-module-B4FAkx3A.mjs → outbox-module-mg9kDYkd.mjs} +13 -17
- package/dist/permissions/index.d.mts +4 -4
- package/dist/permissions/index.mjs +7 -7
- package/dist/{permissions-B14c3OMp.mjs → permissions-A1oKtpiC.mjs} +19 -29
- package/dist/{pipe-CQv7PsAK.mjs → pipe-Czpw9U2n.mjs} +3 -4
- package/dist/pipeline/index.d.mts +1 -9
- package/dist/pipeline/index.mjs +5 -8
- package/dist/{plan-CpnTykjb.mjs → plan-KVseuBCL.mjs} +5 -9
- package/dist/{plugin-DXTjVg_Q.mjs → plugin-DTWt_8C3.mjs} +130 -62
- 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-msB9X3yw.mjs} +2 -3
- 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-qKCehiJM.mjs} +11 -18
- package/dist/{projection-CgfSLOSM.mjs → projection-ClBqtsIw.mjs} +3 -4
- package/dist/{pushref-registry-UxCkoA4C.d.mts → pushref-registry-d86QUaSq.d.mts} +0 -6
- package/dist/{queryCachePlugin-D0HUISHJ.mjs → queryCachePlugin-3gJj5Rbz.mjs} +8 -10
- package/dist/{queryCachePlugin-C2lZjTxk.d.mts → queryCachePlugin-DYQUyeJ9.d.mts} +2 -4
- package/dist/{rateLimitKey-AvkBOMkl.mjs → rateLimitKey-Kro---xl.mjs} +2 -3
- package/dist/{realtime-CbWtVbqK.mjs → realtime-Ber8uJN2.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-BA-_vFYk.mjs} +7 -12
- package/dist/{renewingLease-CykpeNcQ.mjs → renewingLease-CMY8YOcc.mjs} +2 -3
- package/dist/{replyHelpers-DA51IZio.mjs → replyHelpers-DK9P_XSz.mjs} +3 -4
- package/dist/{requestContext-DIWHKDtQ.mjs → requestContext-GYO_0gEw.mjs} +2 -3
- package/dist/{requirement-CbiLdQ1n.d.mts → requirement-CTRQjjQx.d.mts} +0 -2
- package/dist/{requirement-Cp_fsMDL.mjs → requirement-DeNjZIH3.mjs} +2 -3
- package/dist/{resourceRateLimit-Wf6d6FL9.d.mts → resourceRateLimit-DCWglD7V.d.mts} +1 -3
- package/dist/{resourceRateLimit-BFuluodF.mjs → resourceRateLimit-tHLbrtWc.mjs} +3 -4
- package/dist/{rolldown-runtime-D_lMdYOd.mjs → rolldown-runtime-Kv1fZdLg.mjs} +2 -3
- package/dist/{routeValidator-DuLonYwr.mjs → routeValidator-C_H5NanI.mjs} +2 -3
- package/dist/{runtimeCapabilities-CydRfm0i.mjs → runtimeCapabilities-DWqbxkyw.mjs} +2 -3
- package/dist/{schedules-B693KXxa.mjs → schedules-eO_RzhCU.mjs} +132 -9
- package/dist/{schemaConverter-DNvZWTV6.mjs → schemaConverter-DBJrPZN4.mjs} +3 -4
- package/dist/{schemaIR-REV2y7Wd.mjs → schemaIR-CEScKT2v.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-B-Sm9m_E.mjs} +5 -6
- package/dist/{sessionManager-qimlKV0P.d.mts → sessionManager-CdvDF04x.d.mts} +2 -4
- package/dist/{shutdown-CfrqPR7A.mjs → shutdown-DzLFbe27.mjs} +2 -3
- package/dist/{simpleEqualityMatcher-BJwfuRKP.mjs → simpleEqualityMatcher-DOJhwQ8g.mjs} +2 -3
- package/dist/{sse-CuNNWr2z.mjs → sse-2972pVwV.mjs} +8 -9
- package/dist/{sseStream-C_2ujAVY.mjs → sseStream-AWLEeNV-.mjs} +3 -4
- package/dist/{storage-Cx9Sz3Ou.d.mts → storage-odC5MNKN.d.mts} +0 -2
- package/dist/{store-helpers-C8uBGCbb.mjs → store-helpers-VzjgVTkM.mjs} +2 -3
- package/dist/{streaming-Bdq_M4d5.mjs → streaming-DvraWW6x.mjs} +2 -3
- package/dist/{subscriberIdentity-B-KpZkdl.mjs → subscriberIdentity-Bya56jsg.mjs} +2 -3
- package/dist/{tenancy-C5PCvm1h.mjs → tenancy-DSa_0hhw.mjs} +3 -4
- package/dist/{tenantPreparation-dYvWrgNa.mjs → tenantPreparation-BrpkQre3.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-6rQTuCwg.mjs} +3 -5
- package/dist/{tracing-Dro5eH6j.d.mts → tracing-JSFiBl5r.d.mts} +0 -2
- package/dist/{transactionContext-DrcNyjpv.mjs → transactionContext-DaxYUEgH.mjs} +2 -3
- package/dist/{typeGuards-CEl10KPy.mjs → typeGuards-UKnX8wPX.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-D3Ixsh00.d.mts → types-BYEb_dLW.d.mts} +2 -4
- 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-CuGjhn83.mjs} +5 -6
- 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-oX5_mOVs.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-CjjGOT4E.mjs} +20 -30
- package/dist/{validate-D_mdOCir.mjs → validate-4RlTKOJb.mjs} +5 -7
- package/dist/{versioning-DBGHjPh7.mjs → versioning-Dk2-19La.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-DoBsoVo4.mjs} +3 -4
- package/llms.txt +37 -30
- package/package.json +9 -8
- 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,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-
|
|
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.
|
|
2
|
-
|
|
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-
|
|
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.
|
|
2
|
-
|
|
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-
|
|
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-
|
|
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.
|
|
2
|
-
import { n as declareRuntimeCapability } from "../runtimeCapabilities-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
2
|
-
import { t as ArcError } from "./errors-
|
|
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
|
-
|
|
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.
|
|
1
|
+
/*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
|
|
2
2
|
import { contentHash } from "@classytic/repo-core/hash";
|
|
3
|
-
|
|
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.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { t as arcLog } from "./logger-
|
|
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
|
-
|
|
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.
|
|
2
|
-
import { t as ResourceRegistry } from "./ResourceRegistry-
|
|
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
|
-
|
|
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 };
|
package/dist/logger/index.d.mts
CHANGED
|
@@ -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;
|
package/dist/logger/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
export { t as arcLog, n as configureArcLogger, r as createPinoWriter, i as runWithArcLogger } from "../logger-
|
|
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.
|
|
1
|
+
/*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
|
|
2
2
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
|
-
|
|
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
|
-
|
|
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.
|
|
2
|
-
import { t as arcLog } from "./logger-
|
|
3
|
-
import { i as NotFoundError, p as isArcError, t as ArcError } from "./errors-
|
|
4
|
-
import {
|
|
5
|
-
import { n as requireSingleHeaderValue } from "./headers-
|
|
6
|
-
import { b as isElevated, c as getOrgId, g as getUserId, x as isMember } from "./types-
|
|
7
|
-
import { a as resolveEffectiveRoles, t as applyFieldReadPermissions } from "./fields-
|
|
8
|
-
import { o as toJsonSchema } from "./schemaConverter-
|
|
9
|
-
import { t as buildRequestScopeProjection } from "./projection-
|
|
10
|
-
import { l as resolvePipelineSteps, t as resolveActionPermission } from "./actionPermissions-
|
|
11
|
-
import { a as withoutTenantInjection, r as prepareTenantContext } from "./tenantPreparation-
|
|
12
|
-
import { r as evaluatePermissionDecision } from "./authorizationDecision-
|
|
13
|
-
import { n as declareRuntimeCapability } from "./runtimeCapabilities-
|
|
14
|
-
import { t as executePipeline } from "./pipe-
|
|
15
|
-
import { a as resourceRateLimitWindowMs, i as resolveResourceRateLimiter, t as createMemoryResourceRateLimiter } from "./resourceRateLimit-
|
|
16
|
-
import { n as evictToSize, r as touch, t as assertCapacity } from "./boundedMap-
|
|
17
|
-
import { t as pluralize } from "./pluralize-
|
|
18
|
-
import { n as createIdempotencyResult, r as operationIdentity, t as resolveIdempotencyTiming } from "./timing-
|
|
19
|
-
import { n as acquireIdempotencyKey, r as releaseIdempotencyLock } from "./acquire-
|
|
20
|
-
import { r as shouldRejectAdditionalProperties, t as normalizeSchemaIR } from "./schemaIR-
|
|
21
|
-
import { n as validateAggregations } from "./validate-
|
|
22
|
-
import { n as executeAggregation } from "./buildHandler-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { n as evictToSize } from "./boundedMap-
|
|
4
|
-
|
|
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.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { a as MetricHistogram, i as DURATION_BUCKETS_SECONDS, o as MetricSeries, s as renderMetricSample } from "./health-
|
|
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
|
-
|
|
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-
|
|
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.
|
|
2
|
-
import { t as CRUD_OPERATIONS } from "../constants-
|
|
3
|
-
import { t as multipartBody } from "../multipartBody-
|
|
4
|
-
|
|
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 };
|