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:
@@ -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) {
|
||||
|
||||
@@ -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']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user