refactor(core): consolidate execute() arguments into ExecuteOptions (#25101)

This commit is contained in:
Michael Bleigh
2026-04-10 10:11:17 -07:00
committed by GitHub
parent 1d36309f5f
commit 3b7c17a22c
69 changed files with 849 additions and 527 deletions

View File

@@ -92,9 +92,9 @@ describe('Background Tools Integration', () => {
(listInvocation as any).context = {
config: { getSessionId: () => 'default' },
};
const listResult = await listInvocation.execute(
new AbortController().signal,
);
const listResult = await listInvocation.execute({
abortSignal: new AbortController().signal,
});
expect(listResult.llmContent).toContain(
`[PID ${pid}] RUNNING: \`node continuous_log\``,
@@ -109,9 +109,9 @@ describe('Background Tools Integration', () => {
(readInvocation as any).context = {
config: { getSessionId: () => 'default' },
};
const readResult = await readInvocation.execute(
new AbortController().signal,
);
const readResult = await readInvocation.execute({
abortSignal: new AbortController().signal,
});
expect(readResult.llmContent).toContain('Showing last');
expect(readResult.llmContent).toContain('Log line');