Skip to content

fix(cloudflare): validate AI Search custom metadata types - #1383

Open
aryasaatvik wants to merge 3 commits into
alchemy-run:mainfrom
aryasaatvik:fix/cloudflare-ai-search-metadata-types
Open

fix(cloudflare): validate AI Search custom metadata types#1383
aryasaatvik wants to merge 3 commits into
alchemy-run:mainfrom
aryasaatvik:fix/cloudflare-ai-search-metadata-types

Conversation

@aryasaatvik

Copy link
Copy Markdown
Contributor

Summary

  • expose AI Search custom metadata as the closed Cloudflare contract: text | number | boolean | datetime
  • reject widened JavaScript/TypeScript values before the provider makes a Cloudflare request
  • exercise accepted and rejected values through the existing live provider lifecycle

Validation

  • mise exec bun@1.3.13 -- bun alchemy-test test/Cloudflare/AI/SearchInstance.test.ts -t "create, update mutable props|rejects custom metadata" --profile testing --sequential --retry 0
  • 2/2 focused live-provider tests passed
  • post-test Cloudflare readback found no test AI Search instances or matching R2 buckets
  • pnpm exec oxfmt packages/alchemy/src/Cloudflare/AI/SearchInstance.ts packages/alchemy/test/Cloudflare/AI/SearchInstance.test.ts
  • changed-file TypeScript diagnostics and git diff --check passed

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.

1 participant