@cratis/pi 7.51.4 → 7.51.5

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.
@@ -76,7 +76,7 @@ cratis screenplay generate <solution|project|folder> \
76
76
  ## Coverage (what a provider reads)
77
77
  | Provider | Reads | Does not read |
78
78
  |---|---|---|
79
- | Arc | commands, events, concepts, read models, projections, reducers, reactors, constraints, declarative FluentValidation rules, authorization policies, `produces` from constants and input paths, Chronicle integration specs as given/when/then, `.tsx` beside a slice as `screen`: `file`, `data … via query`, `title`, `table`/`column`, `action` and `toolbar actions`, read from Cratis Components only | handler bodies, rules written in code, computed messages (`SP0016`), screen `section`, `summary`, `navigate to` and `layout` (unread properties are `SP0028`; same-screen details, `useDialog` and enablement are `SP0077`), captures, personas, seeds, `secret` on older Arc (see Compliance recovery). A rule held to `When`/`Unless` is written down as if unconditional and `SP0016` names the condition: read the diagnostic, do not trust the declaration |
79
+ | Arc | commands, events, concepts, read models, projections, reducers, reactors, constraints, declarative FluentValidation rules, authorization policies, `produces` from constants and input paths, Chronicle integration specs as given/when/then, `.tsx` beside a slice as `screen`: `file`, `data … via query`, `title`, `table`/`column`, `action` and `toolbar actions`, read from Cratis Components only, plus `navigate to` from literal react-router gestures (see Navigation below) | handler bodies, rules written in code, computed messages (`SP0016`), screen `section`, `summary` and `layout`, other navigation (unread properties are `SP0028`; same-screen details, `useDialog` and enablement are `SP0077`), captures, personas, seeds, `secret` on older Arc (see Compliance recovery). A rule held to `When`/`Unless` is written down as if unconditional and `SP0016` names the condition: read the diagnostic, do not trust the declaration |
80
80
  | Marten / Critter Stack (preview; an independent optional adapter built on the neutral Screenplay.Generation SDK, not affiliated with JasperFx: review every `GEN`/`MARTEN`/`WOLVERINE` diagnostic by hand) | aggregates, snapshots, HTTP and message handlers, document operations, queries, outgoing and delayed messages, saga facts | saga lifecycle, policies, middleware bodies, runtime tenancy, upcasting; unbounded extension code is reported by presence only |
81
81
  | any non-.NET stack | nothing | use Prologue and targeted reads |
82
82
 
@@ -84,6 +84,17 @@ Requires Arc.Screenplay 22.60.0 or later for `title`, `table`/`column` and `acti
84
84
 
85
85
  Requires Arc.Screenplay 22.94.0 or later for cross-slice screen actions, toolbar items and `data … via query`, qualified with the shortest unique module/feature/slice scope; before it, those cross-slice bindings were omitted with `SP0028`.
86
86
 
87
+ ### Navigation
88
+
89
+ The Arc provider reads route tables from TSX files that import `Route`, `Routes`, `createBrowserRouter`, `createHashRouter` or `createMemoryRouter` from `react-router` or `react-router-dom`: nested `<Route path=… element={<Screen />}>` declarations inside `<Routes>`, or literal route objects passed directly to a `create*Router` call. A route's element must be a sole component imported through a named relative import whose module file is exactly one screen file. Two gestures then become navigation:
90
+
91
+ - A menu item's `command={() => navigate('/literal')}` becomes `item <name> navigate to <Screen>`.
92
+ - A `CommandDialog onSuccess={() => navigate('/literal')}` becomes `navigate to <Screen>` under that command's action. Dialogs exposing the same command must agree on the destination; a conflict is reported, not combined.
93
+
94
+ `navigate` must come from `const navigate = useNavigate()` in the same component body, and only absolute, quoted literal paths match. A required route parameter such as `:id` supplied by `/authors/42` becomes `parameter id from literal "42"`. A destination in another slice is qualified like other cross-slice references. Computed paths, unresolved routes and other navigation are not inferred; write them by hand and expect a regeneration to leave them out.
95
+
96
+ Requires Arc.Screenplay 22.96.0 or later for navigation from route tables; older releases write no `navigate to` and report an unread success callback as `SP0028`.
97
+
87
98
  ## Diagnostics are the loss list
88
99
  - Families: `SP####` (Arc), `MARTEN####`, `WOLVERINE####`, `VOG####`, `GEN####`,
89
100
  `DOTNETSP####` (placement), `CLI####` (host). Each one is an evidence row or a loss-report
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.51.4",
3
+ "version": "7.51.5",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [