Repository navigation
Release v23.3.0
Arc can now refuse the commands and queries of a part of the application that is not available to the caller's tenant, user or system, tell clients why, and keep React navigation and MCP tools in step. Availability is decided by the Choreography availability engine in a new, optional Cratis.Arc.Availability package; hosts that do not add it pay nothing.
Added
Cratis.Arc.Availabilitypackage:AddArcAvailability(...),[AvailableFor]and[AvailableWith]attributes, andoptions.Gate<TPart>(...)/options.GateNamespace(...)gates built on ChoreographyAvailabilityExpression. Gates apply down the path (namespace, part, attributes) and the audiences and context values of a request are resolved once. (#3831)- Commands and queries of a part that is not available are refused before
authorizewith theNotAvailablereason (AvailabilityReason.NotAvailable) and HTTP 403. Unknown denies. (#3831) CommandResultandQueryResultcarryAuthorizationFailureReasonandIsRetryable; a failure to decide whether a part is available is a retryable error (HTTP 503), never a denial. (#3831)- The
/.cratis/availabilityobservable query reports what is not available to the current context, with the slice of each part, and re-emits when audiences change. (#3832) @cratis/arc/availabilityand@cratis/arc.react/availability:AvailabilityProvider,RequireAvailable,useAvailableItemsanduseAvailabilityhide unavailable parts, navigation items and screens and show them again live; command results exposeisNotAvailable,onNotAvailableandisRetryable, andisNotAvailable(result)reads query results. (#3832)- MCP tools whose command or query is not available are omitted from the tool listing; a call is refused with the
NotAvailablereason, and the tool outcome now includesreasonandisRetryable. (#3832) - Documentation for availability and React availability. (#3832)
Changed
- Raises SharpCompress to 0.50.8, which
Cratis.Choreography2.7.0 requires.