Documentation
¶
Overview ¶
Package discover handles discovery of local and remote Claude Code projects. It scans the local filesystem for project directories and .jsonl files, and queries S3 for remote projects and object counts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverLocal ¶
DiscoverLocal discovers all local Claude Code projects and counts their .jsonl files. It scans the projectsRoot directory, treating each immediate child directory as a project, and recursively counts .jsonl files within each project.
Returns an error if projectsRoot doesn't exist, is not a directory, or is not readable. Individual project read errors are logged but don't fail the entire operation.
func DiscoverRemote ¶
func DiscoverRemote(ctx context.Context, client *s3.Client, bucket, prefix string) ([]types.Project, error)
DiscoverRemote discovers projects in S3 by listing prefixes. Each immediate child prefix under bucket/prefix/ is treated as a project. For each project, counts .jsonl files (case-insensitive).
Types ¶
This section is empty.