H.ExecutionEnv.Remote (H v0.3.0)

Copy Markdown View Source

Cooperative remote H.ExecutionEnv adapter backed by a H.RemoteAgent handle.

Delegates all path resolution, directory listing (including project markers), file I/O, and process execution to the target remote agent without calling local Path.expand/2, File, or System directly.

Future Network Transport

Today agent is a local in-VM H.RemoteAgent GenServer proving interface, identity separation (env_id, kind: "remote"), fencing, and lease-expiry reaping semantics. A future Slice 8 network adapter (mTLS WebSocket/HTTPS or SSH subsystem) will swap into the remote agent handle seam without changing H.Tools.*, H.WorkspaceLease, or callers.

Summary

Functions

Creates a H.ExecutionEnv.t() targeting agent bound to remote_cwd.

Functions

new(agent, cwd \\ nil, opts \\ [])

@spec new(H.RemoteAgent.server(), nil | String.t(), keyword()) :: H.ExecutionEnv.t()

Creates a H.ExecutionEnv.t() targeting agent bound to remote_cwd.

Options

  • :env_id - optional non-empty string override for the environment ID (defaults to H.RemoteAgent.descriptor(agent).id)
  • :default_exec_opts - keyword list of default fence/lease/exec options merged into every exec/3 call