Skip to content

fix(ai): narrow external data to unknown and add guards#195

Open
awwalmust wants to merge 6 commits into
MD-Creative-Production:mainfrom
awwalmust:fix/ai-types
Open

fix(ai): narrow external data to unknown and add guards#195
awwalmust wants to merge 6 commits into
MD-Creative-Production:mainfrom
awwalmust:fix/ai-types

Conversation

@awwalmust

Copy link
Copy Markdown
Contributor

Replace unsafe 'any' with 'unknown' in AI interfaces and providers, add lightweight normalization/guards in OpenAIProvider, and adjust ESLint overrides so src/** files are linted without type-aware rules. This reduces runtime risk from untrusted AI data and clears lint warnings. Local checks: npm run format && npm run lint (no explicit-any warnings for AI files).

@mijinummi

Copy link
Copy Markdown
Collaborator

Resolve conflict please @awwalmust

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants