Skip to content

refactor: reorganize src/ directory structure to comply with 10-item limit #1582

@kaizhou-lab

Description

@kaizhou-lab

Description

Reorganize the src/ directory structure to comply with the project's 10-item-per-directory convention defined in docs/conventions/file-structure.md.

Context

The current src/ layout has grown organically, resulting in directories with 20-28 direct children — well above the 10-item limit. This makes navigation difficult, blurs process boundaries, and violates the project's own architectural conventions.

Scope

  • src/ root: consolidate loose directories into common/ and process/
  • src/process/: reorganize from 24 to 11 items (resources/, services/, utils/)
  • src/common/: reorganize from 28 to 8 items (api/, adapter/, chat/, config/, types/, update/, utils/)
  • Global: fix all stale import paths across 835 files
  • Docs: update architecture.md and file-structure.md with new paths

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions