Expand description
Session: owns a loaded dependency graph and exposes query methods.
A Session is the primary interface for library consumers (CLI, REPL,
language server). It wraps graph loading, entry resolution, and keeps the
background cache-write handle alive for the duration of the session.
Structs§
- Resolved
Target - The result of resolving a
--chain/--cutargument against the graph. - Session
- An open dependency-graph session.
Functions§
- entry_
label - Build a display label for an entry point that includes the project
directory name for disambiguation (e.g.
wrangler/src/index.tsinstead of justsrc/index.ts). - looks_
like_ path - Determine whether a chain/cut argument looks like a file path (as opposed to a package name).