Skip to main content

Module session

Module session 

Source
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§

ResolvedTarget
The result of resolving a --chain/--cut argument 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.ts instead of just src/index.ts).
looks_like_path
Determine whether a chain/cut argument looks like a file path (as opposed to a package name).