Repository navigation
Release v1.3.1
Arc now serves the same event model explorer as the C# Arc, at the same address, /.cratis/event-model, drawn from your commands, events, read models and reactions. The model is generated while you compile and embedded in your application's priv, so nothing is analysed at run time.
Added
/.cratis/event-model/withhierarchy,documents/{project}/{document}/model,documents/{project}/{document}/sourceandassets/*: the same routes and contract as the C# explorer. It is served in development by default; setevent_model: trueto serve it elsewhere.introspectiondecides who may read it.- The
:arc_event_modelcompiler. Addcompilers: Mix.compilers() ++ [:arc_event_model]andarc: [application: MyApp.Arc]to writepriv/cratis/event_model: a catalog, a board model and the Screenplay source for the application, each module and each feature. - The explorer itself, a small Vite and React application in
Source/event_model_viewer, built into the package by the publish workflow. event_model:andevent_model_apps:options on the Arc application, and an Event model page in the documentation.
Changed
- Every Arc module is now under
Cratis.Arc:Arc.CommandisCratis.Arc.Command,Arc.ReadModelisCratis.Arc.ReadModel,Arc.TestisCratis.Arc.Test,Arc.MongoDBisCratis.Arc.MongoDB, andArc.execute/3,Arc.query/5andArc.context/2areCratis.Arc.*. Mix tasks, the:arc_*compilers andconfig :cratis_arckeep their names. - A command names its route with an option, like Chronicle:
use Cratis.Arc.Command, id: "register-author"replaces thecommand "register-author"declaration. Cratis.Arc.Plug.Introspection.schema/1andtype_schema/1are public so the model reuses the schemas of the discovery routes.