RepoPilot

alistgo / alist

Search alistgo/alist

GitHub

Code

How alistgo/alist is laid out, and where to start for common changes.

There is no import map for this report yet.

Where to start reading

  1. Repository root
  2. Repository root
  3. Likely start-up file
  4. Suggested starting pointAI
  5. Suggested starting pointAI
  6. Suggested starting pointAI
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add a new storage driver

  • Implement the driver.Driver interface defined in internal/driver/driver.go with Get, Put, Move, Remove operations
  • Register the new driver in internal/op/driver.go's driver factory/initialization logic
  • Add driver-specific configuration schema to internal/driver/config.go for setup parameters
  • Test driver integration by writing unit tests similar to internal/op/driver_test.go patterns

Add a new file operation feature

  • Define the operation in internal/op/fs.go alongside existing file operations (copy, link, archive)
  • Implement core filesystem logic in appropriate internal/fs/ module (e.g., internal/fs/fs.go for VFS abstraction)
  • Add HTTP endpoint in internal/message/http.go to expose the operation to REST API

Add a new background task type

  • Define task type enum or constant in internal/task/base.go
  • Implement task handler extending base task structure in internal/task/manager.go
  • For async operations, integrate with pkg/task/manager.go queue infrastructure

Trace runtime behavior

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

  • Files marked “likely” are guessed from their names.

Code quality and hotspots

Largest source files

  • Branch points24 per file on average
  • Code issues2 errors, 15 warnings
  • Largest file1,940 lines
  • Hotspot load0 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions20 workflows
  • Tests70 test filesGo test · 0.10 test files per source file (file count, not coverage)
  • Dependency updatesNo config detected

Test folders: drivers/quark_uc · drivers/123_open · drivers/lanzou

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.