decision detail shows full markdown body via pql decisions read

New pql.decisions.read IPC verb returns the full markdown section
body. Decision detail view now shows: title card, full decision
text (rationale, cost, cross-references), and clickable ref cards
for cross-reference navigation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-23 17:19:15 +02:00
co-authored by Claude Opus 4.6
parent dad2d0ad52
commit 2345125172
3 changed files with 71 additions and 1 deletions
+13
View File
@@ -125,6 +125,19 @@ void registerPqlCommands(DaemonDispatcher d, PqlClient pql) {
}
});
d.register('pql.decisions.read', (req) async {
final id = req.args['id'] as String?;
if (id == null || id.isEmpty) {
return _userError(req.id, 'pql.decisions.read requires an id');
}
try {
final result = await pql.decisionRead(id);
return IpcResponse.ok(id: req.id, data: result);
} on PqlException catch (e) {
return _pqlError(req.id, e);
}
});
d.register('pql.decisions.show', (req) async {
final id = req.args['id'] as String?;
if (id == null || id.isEmpty) {
+4
View File
@@ -94,6 +94,10 @@ class PqlClient {
return _runObject(args);
}
Future<Map<String, Object?>> decisionRead(String id) async {
return _runObject(['decisions', 'read', id]);
}
Future<List<Map<String, Object?>>> decisionCoverage() async {
return _runList(['decisions', 'coverage']);
}