Skip to content

refactor: dedupe and modularize runtime, OAuth, and CLI internals - #249

Merged
steipete merged 4 commits into
mainfrom
claude/codebase-refactor-optimize-7ad674
Aug 2, 2026
Merged

steipete merged 4 commits into
mainfrom
claude/codebase-refactor-optimize-7ad674

Conversation

@steipete

@steipete steipete commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

This four-commit series refactors internal runtime, OAuth, daemon, and CLI implementation without changing public API, CLI, or configuration behavior:

  • Deduplicates pure utilities and removes dead code, including stable JSON helpers, daemon config-layer helpers, and six unused exports, for a net reduction of 141 lines.
  • Centralizes CLI contracts around a shared record/replay harness, shared ad-hoc help lines, and a canonical Chrome DevTools patch source.
  • Splits the 946-line oauth-persistence.ts into store and refresh-policy modules behind an unchanged facade.
  • Extracts RuntimeConnectionCache, reducing runtime.ts from 907 to 414 lines; splits transport internals into cached-auth and HTTP-transport modules; and loads configuration once at daemon startup.

There are no public API, CLI, or configuration changes. The test count increases from 840 to 859. This is internal-only, so there is no changelog entry.

🤖 Generated with Claude Code

@clawsweeper

clawsweeper Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: refactor: dedupe and modularize runtime, OAuth, and CLI internals This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

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