fix: Resolve CI typecheck failures and improve type safety
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Fixes CI pipeline failures caused by missing Prisma Client generation and TypeScript type safety issues. Added Prisma generation step to CI pipeline, installed missing type dependencies, and resolved 40+ exactOptionalPropertyTypes violations across service layer. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -72,7 +72,7 @@ export class PromptFormatterService {
|
||||
|
||||
if (options?.includeDateTime === true) {
|
||||
const now = new Date();
|
||||
const dateStr: string = context?.currentDate ?? now.toISOString().split("T")[0];
|
||||
const dateStr: string = context?.currentDate ?? now.toISOString().split("T")[0] ?? "";
|
||||
const timeStr: string = context?.currentTime ?? now.toTimeString().slice(0, 5);
|
||||
const tzStr: string = context?.timezone ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
||||
parts.push(`Current date: ${dateStr}, Time: ${timeStr} (${tzStr})`);
|
||||
|
||||
Reference in New Issue
Block a user