Skip to main content

WorkflowHostRequest

Enum WorkflowHostRequest 

Source
pub enum WorkflowHostRequest {
    ReserveAgentCalls {
        count: u64,
        reply: Sender<Result<(), HostError>>,
    },
    ReleaseAgentCalls {
        count: u64,
        reply: Sender<Result<(), HostError>>,
    },
    SpawnAgent {
        opts: AgentOpts,
        reply: Sender<Result<AgentResult, HostError>>,
    },
    Phase {
        title: String,
        replayed: bool,
    },
    Log {
        message: String,
        replayed: bool,
    },
    Telemetry {
        name: String,
        fields: Value,
        replayed: bool,
    },
    BudgetQuery {
        reply: Sender<Result<BudgetState, HostError>>,
    },
    RenderTemplate {
        name: String,
        vars: Value,
        reply: Sender<Result<String, HostError>>,
    },
    WriteScratchFile {
        name: String,
        content: String,
        reply: Sender<Result<String, HostError>>,
    },
    ReadScratchFile {
        name: String,
        reply: Sender<Result<String, HostError>>,
    },
    GitDiffSince {
        commit: String,
        reply: Sender<Result<String, HostError>>,
    },
}
Expand description

Requests the pure engine sends to the host.

Variants§

§

ReserveAgentCalls

Reserve agent call slots.

Fields

§count: u64

Count to reserve.

§reply: Sender<Result<(), HostError>>

Reply channel.

§

ReleaseAgentCalls

Release unused reservations.

Fields

§count: u64

Count to release.

§reply: Sender<Result<(), HostError>>

Reply channel.

§

SpawnAgent

Spawn a nested agent and wait for completion.

Fields

§opts: AgentOpts

Spawn options.

§reply: Sender<Result<AgentResult, HostError>>

Reply channel.

§

Phase

Phase notification (non-journaled UI signal).

Fields

§title: String

Phase title.

§replayed: bool

True when replaying.

§

Log

Log line.

Fields

§message: String

Message.

§replayed: bool

True when replaying.

§

Telemetry

Structured telemetry event (optional host support).

Fields

§name: String

Event name.

§fields: Value

Arbitrary fields.

§replayed: bool

True when replaying.

§

BudgetQuery

Budget query.

Fields

§reply: Sender<Result<BudgetState, HostError>>

Reply channel.

§

RenderTemplate

Render a named template (optional).

Fields

§name: String

Template name.

§vars: Value

Template variables.

§reply: Sender<Result<String, HostError>>

Reply channel.

§

WriteScratchFile

Write a scratch file in the host run workspace (optional).

Fields

§name: String

Scratch file name.

§content: String

File content.

§reply: Sender<Result<String, HostError>>

Reply channel (resolved path or id).

§

ReadScratchFile

Read a scratch file (optional).

Fields

§name: String

Scratch file name.

§reply: Sender<Result<String, HostError>>

Reply channel.

§

GitDiffSince

Git diff since a commit (optional).

Fields

§commit: String

Commit-ish.

§reply: Sender<Result<String, HostError>>

Reply channel.

Implementations§

Source§

impl WorkflowHostRequest

Source

pub const fn kind(&self) -> &'static str

Stable kind string for journaling.

Trait Implementations§

Source§

impl Debug for WorkflowHostRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.