Merge pull request #26 from mane/fix/redact-whitebox-source-context
fix: redact secrets from whitebox source context
This commit is contained in:
2 files changed
+28
-1
No files matched your search
@@ -43,6 +43,7 @@ import {
|
||||
type SourceFile,
|
||||
type SourceBundle,
|
||||
} from '../orchestration/context-pack.js';
|
||||
import { redactString } from '../redact.js';
|
||||
|
||||
// =============================================================================
|
||||
// TYPES
|
||||
@@ -863,7 +864,7 @@ export function formatUnitForLLM(unit: AnalysisUnit): string {
|
||||
`risk signals: ${unit.riskSignals.length ? unit.riskSignals.join(', ') : '(none)'}`,
|
||||
);
|
||||
lines.push('---');
|
||||
lines.push(b.body);
|
||||
lines.push(redactString(b.body));
|
||||
return lines.join('\n');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user