mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 05:02:40 +00:00
feat(errors): name the fields a failure's recovery selects so the CLI renders their flags (#11644)
* feat(errors): name the fields a failure's recovery selects so the CLI renders their flags
AnalysisError gains related { parameters, operations } (contract fields and operation names), projected as details.related_parameters / related_operations and kept through the domain re-attribution helpers. The CLI projection adds details.related_cli_flags for its own command's fields. inspect_plist's missing-default failure and inspect_sqlite_database's column-evaluation failure name fields only in their text.
* test(sqlite): check MCP omits CLI flags on the failure that names related fields
This commit is contained in:
1 parent
2a31e064f3
commit
0035d8edb3
11 files changed
+168
-17
No files matched your search
@@ -119,10 +119,11 @@ const rejectedReply = (
|
||||
{
|
||||
capturedOutput,
|
||||
userMessage: reply.message,
|
||||
related: { parameters: ["columns", "table", "schema_scope"] },
|
||||
remediationAction: `The database is readable; only the listed column values failed. REA's SQLite connection loads no extensions or application functions and disables schema trust. ${
|
||||
readable.length === 0
|
||||
? "No other readable column was found"
|
||||
: `Select columns whose values were read: columns: ${JSON.stringify(readable)} (CLI: one --column per name)`
|
||||
: `Select columns whose values were read: columns: ${JSON.stringify(readable)}`
|
||||
}; omit table and use schema_scope: database to read the stored declarations without evaluating rows. Obtaining the failed values needs a SQLite connection able to evaluate them. Do not repeat the unchanged request.`,
|
||||
},
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user