Workspace class

The per-session workspace the work runs in — an ambient VALUE mounted by SessionScope (computed once per session from the per-substation SourceControl; ADR-0008 D5: the layout is the SourceControl impl's opinion, the engine's concept is "a workspace"). A capability reads it with the effect verb: context.getInheritedSeedOfExactType<Workspace>().

Constructors

Workspace({required String workspaceDir, required String branch, required String baseBranch, String? baseSha})
Bundles the stable workspaceDir home, the work branch, the baseBranch a land opens its PR against, and the optional baseSha the workspace was provisioned from.
const

Properties

baseBranch String
The base branch a land opens its PR against.
final
baseSha String?
The provision-time commit the workspace started from, or null when that identity is not known.
final
branch String
The branch the work is on (the git impl: grid/<beadId>).
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
workspaceDir String
The stable home directory the work runs in (the cwd default; per-spawn overridable via RuntimeConfig.workingDirectory).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override