style: auto-fix ESLint issues (curly braces and formatting)
- Add curly braces to all if/else/for/while statements - Fix indentation and trailing spaces - Auto-fixed 372 linting errors using eslint --fix - Remaining issues are warnings only (non-null assertions, explicit any types)
This commit is contained in:
@@ -243,7 +243,7 @@ describe('AgentOrchestrator', () => {
|
||||
});
|
||||
|
||||
expect(consoleSpy).toHaveBeenCalledWith(
|
||||
'[Flynn:delegate] tier=fast tokens=50+25'
|
||||
'[Flynn:delegate] tier=fast tokens=50+25',
|
||||
);
|
||||
|
||||
consoleSpy.mockRestore();
|
||||
|
||||
@@ -364,10 +364,10 @@ export class AgentOrchestrator {
|
||||
* Called before each `process()` call when compaction is configured.
|
||||
*/
|
||||
private async compactIfNeeded(): Promise<void> {
|
||||
if (!this._compactionConfig) return;
|
||||
if (!this._compactionConfig) {return;}
|
||||
|
||||
const messages = this.getHistory();
|
||||
if (messages.length === 0) return;
|
||||
if (messages.length === 0) {return;}
|
||||
|
||||
const model = this._modelName ?? 'unknown';
|
||||
const needs = shouldCompact({
|
||||
@@ -377,7 +377,7 @@ export class AgentOrchestrator {
|
||||
thresholdPct: this._compactionConfig.thresholdPct,
|
||||
});
|
||||
|
||||
if (!needs) return;
|
||||
if (!needs) {return;}
|
||||
|
||||
await this.compact();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user