ProjectService class

Detects project types, frameworks, and provides project-level operations.

Constructors

ProjectService()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

detectProject(String path) → Future<ProjectInfo>
Scans the directory at path and returns a ProjectInfo describing it.
detectTestFramework(String path) → Future<TestFramework>
Detects the test framework used in the project.
findProjectRoot(String startPath) → Future<String?>
Walks up the directory tree from startPath until a project root marker is found. Returns null if the filesystem root is reached.
generateProjectSummary(String path) → Future<String>
Generates a human-readable project summary suitable for system prompts.
getDependencyTree(String path) → Future<DependencyNode>
Builds a dependency tree for the project at path.
getProjectFiles(String path, {bool respectGitignore = true}) → Future<List<String>>
Returns all project files, optionally respecting .gitignore.
getProjectLanguages(String path) → Future<Map<String, LanguageStats>>
Calculates per-language statistics for the project.
getProjectScripts(String path) → Future<Map<String, String>>
Returns the scripts/commands defined in the project manifest.
getProjectSize(String path) → Future<ProjectSize>
Calculates the size of the project at path.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runProjectCommand(String command, {String? workDir}) → Future<ProcessResult>
Runs a shell command in the project directory.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited