feat(FN-3736): declare setTimeout global in roadmap-suggestions.js

Declares the `setTimeout` global in `roadmap-suggestions.js` to resolve a linting or runtime error in the roadmap plugin route handler.

Fusion-Task-Id: FN-3736
This commit is contained in:
Fusion
2026-05-08 11:47:58 -07:00
committed by gsxdsm
parent 9f5720724f
commit ab1398eb52
2 changed files with 6 additions and 5 deletions

View File

@@ -1,3 +1,4 @@
/* globals setTimeout */
let injectedCreateAiSession;
export const MILESTONE_SUGGESTION_SYSTEM_PROMPT = `You are a milestone planning assistant for a product roadmap system.
@@ -195,7 +196,7 @@ export async function generateMilestoneSuggestions(goalPrompt, count = DEFAULT_S
dispose?.();
}
})(),
new Promise((_, reject) => globalThis.setTimeout(() => reject(new ServiceUnavailableError("AI suggestion generation timed out. Please try again.")), SUGGESTION_TIMEOUT_MS)),
new Promise((_, reject) => setTimeout(() => reject(new ServiceUnavailableError("AI suggestion generation timed out. Please try again.")), SUGGESTION_TIMEOUT_MS)),
]);
return result;
}
@@ -262,7 +263,7 @@ export async function generateFeatureSuggestions(context, count = DEFAULT_SUGGES
dispose?.();
}
})(),
new Promise((_, reject) => globalThis.setTimeout(() => reject(new ServiceUnavailableError("AI suggestion generation timed out. Please try again.")), SUGGESTION_TIMEOUT_MS)),
new Promise((_, reject) => setTimeout(() => reject(new ServiceUnavailableError("AI suggestion generation timed out. Please try again.")), SUGGESTION_TIMEOUT_MS)),
]);
return result;
}