chore(lint): restore zero-error eslint baseline
This commit is contained in:
@@ -47,7 +47,7 @@ const cancellableTool: Tool = {
|
||||
description: 'Long-running cancellable tool',
|
||||
inputSchema: { type: 'object', properties: {} },
|
||||
execute: async (_args, context) => {
|
||||
return await new Promise((resolve) => {
|
||||
return new Promise((resolve) => {
|
||||
const onAbort = () => resolve({ success: false, output: '', error: 'aborted' });
|
||||
if (context?.signal?.aborted) {
|
||||
onAbort();
|
||||
@@ -65,7 +65,7 @@ function createSideEffectTool(sideEffect: { fired: boolean }): Tool {
|
||||
description: 'Cancellable side effect',
|
||||
inputSchema: { type: 'object', properties: {} },
|
||||
execute: async (_args, context) => {
|
||||
return await new Promise((resolve) => {
|
||||
return new Promise((resolve) => {
|
||||
const timer = setTimeout(() => {
|
||||
sideEffect.fired = true;
|
||||
resolve({ success: true, output: 'side effect fired' });
|
||||
|
||||
Reference in New Issue
Block a user