features/workspaces/workspaces library
Classes
- Workspace
- Per-issue workspace returned by WorkspaceManager.
- WorkspaceHookOutcome
- Outcome of a hook execution.
- WorkspaceHookRunner
-
Runs workspace lifecycle hooks via
bash -lc <script>with a timeout. - WorkspaceManager
- Creates and reuses per-issue workspaces backed by git worktrees.
- WorkspaceRemoval
- Result of a workspace removal request.
Enums
- WorkspaceFailureCode
- Failure codes for workspace operations.
- WorkspaceHookKind
- Identifies which lifecycle hook is being executed.
Extensions
Typedefs
-
GitCommandRunner
= Future<
ProcessResult> Function(List<String> arguments, {String? workingDirectory}) -
Pluggable command runner used to invoke
git. Tests can swap this for a stub that records arguments without spawning a subprocess.
Exceptions / Errors
- WorkspaceException
- Exception thrown by the workspace manager.