Skip to content

Release v23.3.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 22:32
f9bc347

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.Availability package: AddArcAvailability(...), [AvailableFor] and [AvailableWith] attributes, and options.Gate<TPart>(...) / options.GateNamespace(...) gates built on Choreography AvailabilityExpression. 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 authorize with the NotAvailable reason (AvailabilityReason.NotAvailable) and HTTP 403. Unknown denies. (#3831)
  • CommandResult and QueryResult carry AuthorizationFailureReason and IsRetryable; a failure to decide whether a part is available is a retryable error (HTTP 503), never a denial. (#3831)
  • The /.cratis/availability observable 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/availability and @cratis/arc.react/availability: AvailabilityProvider, RequireAvailable, useAvailableItems and useAvailability hide unavailable parts, navigation items and screens and show them again live; command results expose isNotAvailable, onNotAvailable and isRetryable, and isNotAvailable(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 NotAvailable reason, and the tool outcome now includes reason and isRetryable. (#3832)
  • Documentation for availability and React availability. (#3832)

Changed

  • Raises SharpCompress to 0.50.8, which Cratis.Choreography 2.7.0 requires.