Skip to content

Reorganize lib/seam directory structure for resources and clients - #533

Merged
razor-x merged 2 commits into
mainfrom
claude/routes-directory-structure-uiv3f0
Jul 27, 2026
Merged

Reorganize lib/seam directory structure for resources and clients#533
razor-x merged 2 commits into
mainfrom
claude/routes-directory-structure-uiv3f0

Conversation

@razor-x

@razor-x razor-x commented Jul 27, 2026

Copy link
Copy Markdown
Member

Summary

This PR reorganizes the directory structure of the lib/seam module by moving resource and client files to a flatter hierarchy. Resources are now located directly under lib/seam/resources/ instead of lib/seam/routes/resources/, and client files are moved to lib/seam/routes/ (previously lib/seam/routes/clients/).

Key Changes

  • Moved resource files: All resource files (access_code, device, webhook, etc.) moved from lib/seam/routes/resources/ to lib/seam/resources/
  • Moved client files: All client files moved from lib/seam/routes/clients/ to lib/seam/routes/
  • Updated code generation: Modified codegen/lib/routes.ts to generate files in the new locations
  • Updated build process: Modified codegen/smith.ts to clean up both lib/seam/routes and lib/seam/resources directories during code generation
  • Updated require statements: Updated all require_relative statements in:
    • lib/seam/http_multi_workspace.rb
    • lib/seam/http_single_workspace.rb
    • lib/seam/webhook.rb
  • Updated documentation: Updated comments in codegen layout files to reflect new file paths

Implementation Details

  • The resourcesPath constant in codegen/lib/routes.ts now points to lib/seam/resources instead of being nested under routes
  • The clientsPath constant was removed as clients are now generated directly in lib/seam/routes/
  • All require paths have been simplified to reflect the new flatter structure

https://claude.ai/code/session_011wXBufNQ9ngdq47Bw5bH4t

claude and others added 2 commits July 27, 2026 23:26
Move the generated client files from lib/seam/routes/clients up into
lib/seam/routes, and move lib/seam/routes/resources out to
lib/seam/resources so routes and resources are siblings under lib/seam.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011wXBufNQ9ngdq47Bw5bH4t
@razor-x
razor-x marked this pull request as ready for review July 27, 2026 23:41
@razor-x
razor-x merged commit 3214373 into main Jul 27, 2026
17 checks passed
@razor-x
razor-x deleted the claude/routes-directory-structure-uiv3f0 branch July 27, 2026 23:42
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.

2 participants