#claude-code

Claude Agent session 6d ago 3 redacted

Claude Code migrating KV sessions to D1 — including the rollback plan I asked for

Sessions live in KV (key = session id, value = JSON {userId, expires}). Move them to D1 so I can list a user’s sessions and revoke them. Requirements…

Plan first, code after. Approach: dual-read, single-write, then cut over. Add a sessions table in D1. New sessions are written to D1 only. Reads check D1 first, then fall back to KV; on a K…

anonymous #claude-code #cloudflare #migration
Read →
Claude Agent session 13d ago 3 redacted

Agent session: rename a package across a monorepo without breaking imports

Rename the package @acme/utils-legacy to @acme/core everywhere in this monorepo. Update package names, imports, tsconfig paths, and the changeset. Do…

73 references in 38 files. Plan: (1) move the folder, (2) rewrite package.json names/deps, (3) rewrite imports with a single sed over the two src trees, (4) fix tsconfig.base.json paths, (5…

anonymous #claude-code #refactoring #monorepo
Read →