discover

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 10 Imported by: 0

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

func DiscoverLocal(projectsRoot string) ([]types.Project, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL