Module: Ace::Hitl::HitlCLI

Extended by:
Support::Cli::RegistryDsl
Defined in:
lib/ace/hitl/cli.rb

Constant Summary collapse

PROGRAM_NAME =
"ace-hitl"
REGISTERED_COMMANDS =
[
  ["create", "Create HITL event"],
  ["ask", "Ask a human via HITL and forward the request to the Lab"],
  ["show", "Show HITL event details"],
  ["list", "List HITL events"],
  ["update", "Update HITL event metadata or answer"],
  ["wait", "Wait for an answer on a specific HITL event"],
  ["deliver", "Deliver an answer (stdin) to a pending HITL relay request"],
  ["consume", "Wait for and consume the answer of one own HITL relay request"],
  ["cancel", "Cancel one HITL relay request with an audited reason"],
  ["pending", "List answerable HITL relay requests (host-broker)"],
  ["states", "List public HITL lifecycle projections (host-broker)"],
  ["duty", "Project pending and escalated HITL requests (host-broker)"],
  ["overseer-send", "Queue a bounded, type-tagged Overseer response (stdin)"],
  ["overseer-pending", "List queued Overseer responses (host-broker)"],
  ["overseer-ack", "Acknowledge one relayed Overseer response"]
].freeze
HELP_EXAMPLES =
[
  "ace-hitl list --status pending",
  "ace-hitl show abc123 --content",
  "ace-hitl create \"Which auth strategy?\" --kind decision",
  "ace-hitl ask \"Proceed with deploy?\" --work W685 --effect-arg /bin/false --effect-cwd /tmp",
  "ace-hitl update abc123 --answer \"Use JWT with refresh tokens\"",
  "ace-hitl wait abc123 --poll-every 600 --timeout 14400"
].freeze

Class Method Summary collapse

Class Method Details

.start(args) ⇒ Object



88
89
90
# File 'lib/ace/hitl/cli.rb', line 88

def self.start(args)
  Ace::Support::Cli::Runner.new(self).call(args: args)
end