fix: eslint formatting and unused variable warnings

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Aron Gates 2026-03-09 14:42:03 +00:00
parent f713f9f43a
commit 2b9091eb5e
No known key found for this signature in database
GPG key ID: 4F5BDD01E0CFE2A0
2 changed files with 8 additions and 3 deletions

View file

@ -670,7 +670,12 @@ function createToolInstance({
}
try {
await flowManager.createFlow(validationId, validationFlowType, flowMetadata, derivedSignal);
await flowManager.createFlow(
validationId,
validationFlowType,
flowMetadata,
derivedSignal,
);
/** @type {{ id: string; delta: AgentToolCallDelta }} */
const successData = {
@ -688,7 +693,7 @@ function createToolInstance({
} else {
sendEvent(res, { event: GraphEvents.ON_RUN_STEP_DELTA, data: successData });
}
} catch (validationError) {
} catch (_validationError) {
throw new Error(
`Tool call validation required for ${serverName}/${toolName}. User rejected or validation timed out.`,
);

View file

@ -883,7 +883,7 @@ function wrapToolWithApproval({ tool, res, streamId }) {
} else {
sendEvent(res, { event: GraphEvents.ON_RUN_STEP_DELTA, data: successData });
}
} catch (validationError) {
} catch (_validationError) {
throw new Error(
`Tool call validation required for ${toolName}. User rejected or validation timed out.`,
);