korrespond v1 premiere: Bedrock routing, engine picker, journal auto-save + status
- KorrespondAgent: add resolveDeployment() helper; fix classify/translate to use
Haiku via Bedrock, draft to use Haiku (quick) or Sonnet (thorough) — fixes broken
withDeployment('gpt-4o-mini') calls when DBN_BEDROCK_ENABLED=true
- korrespond.php: add Quick/Thorough engine picker (case_toggle already present)
- korrespond.js: pass engine in request payload
- api/korrespond.php: accept user-selected engine, auto-save to case_tool_results
for paid users after each successful run, update deployment log label
- CaseResults: add korr_status to listForUser SELECT, add updateStatus() method
- result-action.php: add set_status action for correspondence journal
- account.php: show status dropdown (Draft/Sent/Reply received/Resolved) for
korrespond entries in #analyses, wire JS change handler to result-action.php
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -48,6 +48,14 @@ switch ($action) {
|
||||
dbnToolsRespond(['ok' => true]);
|
||||
break;
|
||||
|
||||
case 'set_status':
|
||||
$status = (string)($input['status'] ?? '');
|
||||
if (!CaseResults::updateStatus($userId, $id, $status)) {
|
||||
dbnToolsError('Could not update status — invalid value or result not found.', 422, 'status_failed');
|
||||
}
|
||||
dbnToolsRespond(['ok' => true, 'status' => $status]);
|
||||
break;
|
||||
|
||||
default:
|
||||
dbnToolsError('Unknown action.', 422, 'unknown_action');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user