Compatibility helpers for migrating main SessionManager input/event shapes
to the rebuild ASM runtime.
This module is intentionally explicit about unsupported migration paths:
- Amp and Shell adapter migration is blocked in this helper.
mainworkflow options that require extension/domain parity are rejected with actionable%ASM.Error{}messages.
Summary
Types
Functions
@spec bridge_event(ASM.Event.t()) :: [legacy_event()]
@spec bridge_stream(Enumerable.t()) :: Enumerable.t()
@spec build_query(provider_hint(), main_input(), keyword()) :: {:ok, query_spec()} | {:error, ASM.Error.t()}
@spec input_to_prompt(main_input()) :: {:ok, String.t()} | {:error, ASM.Error.t()}
@spec resolve_provider(provider_hint()) :: {:ok, :claude | :codex | :gemini} | {:error, ASM.Error.t()}
@spec run_once(provider_hint(), main_input(), keyword()) :: {:ok, map()} | {:error, ASM.Error.t()}
@spec run_once(term(), provider_hint(), main_input(), keyword()) :: {:ok, map()} | {:error, ASM.Error.t()}