feat: certify codegen chat drafts through loop
This commit is contained in:
@@ -134,6 +134,11 @@ export interface ChatAnswer {
|
||||
trace_verify?: { ok: boolean; output: string };
|
||||
replay?: { ok: boolean; output: string };
|
||||
};
|
||||
codegen?: {
|
||||
artifact?: string;
|
||||
artifact_scan?: { ok: boolean; output: string };
|
||||
tool_output_scan?: { ok: boolean; output: string };
|
||||
};
|
||||
actor: SettingsActor;
|
||||
}
|
||||
|
||||
|
||||
@@ -247,6 +247,16 @@ export function Chat() {
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{last.codegen && (
|
||||
<div className="rounded border border-gray-200 p-3">
|
||||
<div className="text-xs font-semibold uppercase text-gray-400">Codegen draft</div>
|
||||
<div className="mt-1 font-medium text-gray-800 break-all">{last.codegen.artifact ?? 'n/a'}</div>
|
||||
<div className="mt-2 flex flex-wrap gap-2">
|
||||
<StatusBadge value={last.codegen.artifact_scan?.ok ? 'artifact scan ok' : 'artifact scan held'} />
|
||||
<StatusBadge value={last.codegen.tool_output_scan?.ok ? 'output scan ok' : 'output scan held'} />
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
<div>
|
||||
<div className="text-xs font-semibold uppercase text-gray-400">Matched rules</div>
|
||||
<div className="mt-1 flex flex-wrap gap-2">
|
||||
|
||||
Reference in New Issue
Block a user