vibe-action 0.2.2

Command router — execute shell commands and LLM prompts via simple YAML actions.
//! System provider for `{system_pid}` — current process ID.

use crate::models::context::ContextModel;
use crate::system::system::SystemKey;
use crate::system::system::SystemProvider;
use anyhow::Result;

pub struct SystemPidProvider;

impl SystemProvider for SystemPidProvider {
    fn key(&self) -> SystemKey {
        SystemKey::Pid
    }

    fn resolve(&self) -> Result<ContextModel> {
        let pid = std::process::id().to_string();
        Ok(ContextModel::String(pid))
    }
}