Pixir.WorkspaceStrategy (pixir v0.1.5)

Copy Markdown View Source

Workspace Strategy vocabulary for Subagents and Workflow steps.

A Workspace Strategy describes how a child sees files and whether writes can mutate the parent workspace. Subagents currently execute shared and isolated; Workflow steps may also opt in to virtual_overlay, which runs explicit virtual commands over an imported read set and returns a virtual_diff without mutating the parent.

Summary

Functions

Return compact Delegation Context fields for a modeled workspace mode.

Normalize a runtime workspace mode or return a structured error.

Functions

delegation_context(mode, metadata \\ %{})

@spec delegation_context(term(), map()) :: {:ok, map()} | {:error, map()}

Return compact Delegation Context fields for a modeled workspace mode.

normalize_runtime_mode(mode, scope, details \\ %{}, opts \\ [])

@spec normalize_runtime_mode(term(), String.t(), map(), keyword()) ::
  {:ok, String.t()} | {:error, map()}

Normalize a runtime workspace mode or return a structured error.