Repository navigation
Conversation
Author
|
Hi — this PR has been open since Oct 31 with no review yet. It takes |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
bun run check-typesinpackages/toolsfails onmain(118 errors). This PR makes it pass (0 errors).Root cause
packages/toolspinszod: ^4.6.6, but theaiSDK'sFlexibleSchematypes resolve through the hoisted root[email protected]. Two physical zod copies → everytool()schema insrc/ai-sdk.tsfailstscwithZodObject<...> is not assignable to FlexibleSchema<never>. CI doesn't catch it becauseci.ymltype-checks onlysdk-playgroundandmemory-graph.Changes
packages/toolsnow pinszod: ^3.25.76(same as the workspace root) and imports from its bundledzod/v4, sotool()schemas andai's types come from one physical copy. The package keeps the v4 API; no source behavior change.src/shared/cache.ts: constrainMemoryCache<T extends {}>and instantiatenew LRUCache<string, T>(...)solru-cachev11 generics hold.tsconfig.json: excludetest/chatapp(a standalone Next.js example app with its own tsconfig/jsx/deps, e.g.@posthog/ai) from the package type-check../claude-memoryimport →../src/claude-memorytest-supermemory.ts: updatewithSupermemorycall to the current 2-arg(client, options)shape with requirednamespace/idstatetoProcessInputArgsliterals (35 sites)with-supermemorymocks: add requiredtotalTokenstoLanguageModelV2Usage, drop the stalerawCallfieldopenai-middleware/voltagentunit tests: strict-index andUIMessagetyping fixesanthropic-example.ts: type the command literals (MemoryCommand), narrowblock.input, fix themessages[0]index andBetaContentBlock[]assignmentVerified locally (bun 1.3.6,
bun install --frozen-lockfileequivalent)tsc --noEmit: 0 errors inpackages/tools; also re-verified 0 errors invalidation,lib,hooks,ui,memory-graph,apps/mcpbun run --cwd packages/tools test:unit: 150/150 tests pass (8 files)bun run --cwd packages/tools build: passesbunx biome cion touched files: no errorsNote for maintainers
ci.ymldoesn't type-checkpackages/tools, which is how this drifted. Adding abun run --cwd packages/tools check-typesstep would cover it - happy to include that here if you want (your AGENTS.md asks contributors not to touch workflows unprompted, so I left it out).Refs the
check-typesnote in #1738.Ask Polylane for an impact assessment of this pull request: