AmpSdk.Types.Options (AmpSdk v0.6.0)

Copy Markdown View Source

Configuration options for an Amp CLI session.

governed_authority selects authority-materialized launch. In that mode, command, cwd, env, credential lease, target, command reference, and redaction reference must come from the authority; standalone env, settings, permissions, MCP, OAuth, and execution-surface overrides are rejected.

Summary

Types

t()

@type t() :: %AmpSdk.Types.Options{
  continue_thread: boolean() | String.t() | nil,
  cwd: String.t() | nil,
  dangerously_allow_all: boolean(),
  env: map(),
  execution_surface:
    CliSubprocessCore.ExecutionSurface.t() | map() | keyword() | nil,
  governed_authority:
    CliSubprocessCore.GovernedAuthority.t() | map() | keyword() | nil,
  labels: [String.t()] | nil,
  log_file: String.t() | nil,
  log_level: String.t() | nil,
  max_stderr_buffer_bytes: pos_integer(),
  mcp_config: map() | String.t() | nil,
  mode: String.t(),
  model_payload: CliSubprocessCore.ModelRegistry.selection() | map() | nil,
  no_color: boolean(),
  no_ide: boolean(),
  no_jetbrains: boolean(),
  no_notifications: boolean(),
  permissions: [AmpSdk.Types.Permission.t()] | nil,
  settings_file: String.t() | nil,
  skills: String.t() | nil,
  stream_timeout_ms: pos_integer(),
  thinking: boolean(),
  toolbox: String.t() | nil,
  visibility: String.t() | nil
}

Functions

validate!(options)

@spec validate!(t()) :: t()