Consolidate shared deps via pnpm catalog and restrict pg to db package#680
Open
Consolidate shared deps via pnpm catalog and restrict pg to db package#680
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge NotesThis PR consolidates dependency versions into the pnpm workspace catalog, migrates Key observations:
Files Reviewed (41 files)
|
e42a842 to
00d80b7
Compare
5873eab to
31af7ba
Compare
31af7ba to
a3c04ee
Compare
Contributor
Author
|
Note to self: merge Monday morning |
a3c04ee to
d2f8329
Compare
- Add hono, typescript, wrangler to pnpm catalog; update drizzle-orm and zod versions - Switch all subpackages to catalog: protocol for drizzle-orm, zod, hono, typescript, wrangler - Remove redundant pg dep from cloudflare-session-ingest and kiloclaw - Refactor cloud-agent-next to use @kilocode/db instead of raw pg (matching cloud-agent) - Delete cloud-agent-next custom db facade (database.ts, node-postgres.ts, SqlStore.ts, table.ts, PlatformIntegrationsStore.ts, table interpolators)
d2f8329 to
8db51f6
Compare
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.
Summary
pnpm catalog expanded to 15 entries:
drizzle-orm,zod,hono,typescript,wrangler,jsonwebtoken,@types/jsonwebtoken,prettier,eslint,@eslint/js,@eslint/eslintrc,typescript-eslint,@octokit/auth-app,aws4fetch,workers-tagged-logger— all at latest compatible versions. Eliminates version drift across 21 workspace packages.pg/drizzle-kit restricted to db package: Removed redundant
pgfromcloudflare-session-ingest,kiloclaw, andcloud-agent-next. Refactoredcloud-agent-nextto use@kilocode/db+ drizzle-orm instead of rawpg.Client, deleting ~300 lines of custom db facade code. The new implementation mirrors the existingcloud-agentservice.hono 4.12 compatibility: Added
as unknown as MiddlewareHandlercast incloudflare-webhook-agent-ingestandcloudflare-ai-attributionto bridge a type mismatch betweenworkers-tagged-logger's bundledHandlertype and hono 4.12+'sMiddlewareHandler. Upstream issue — runtime is unaffected.prettier 3.8.1 formatting: 9 files reformatted due to prettier upgrade from 3.6.2.
Changed files
pnpm-workspace.yamlpackage.jsonfilesinstallation-lookup-service.tsrewritten, 7 db files deletedcloudflare-webhook-agent-ingest/src/index.ts,cloudflare-ai-attribution/src/ai-attribution.worker.tspnpm-lock.yaml