chore: Fix types in tests 37/N.

This commit is contained in:
cpojer
2026-02-17 15:47:14 +09:00
parent 7b31e8fc59
commit 238718c1d8
9 changed files with 43 additions and 17 deletions

View File

@@ -28,7 +28,7 @@ async function createBootstrapContext(params: {
sessionKey: string;
rootFiles: Array<{ name: string; content: string }>;
}): Promise<AgentBootstrapHookContext> {
const bootstrapFiles = await Promise.all(
const bootstrapFiles = (await Promise.all(
params.rootFiles.map(async (file) => ({
name: file.name,
path: await writeWorkspaceFile({
@@ -39,7 +39,7 @@ async function createBootstrapContext(params: {
content: file.content,
missing: false,
})),
);
)) as AgentBootstrapHookContext["bootstrapFiles"];
return {
workspaceDir: params.workspaceDir,
bootstrapFiles,