nyx-agent-ai 0.1.0

Implementation-detail AI runtime adapters, prompts, and automation helpers for nyx-agent.
Documentation
//! `AiRuntime` trait + concrete vendor adapters.
//!
//! This crate is published so the `nyx-agent` binary can be installed
//! from crates.io with versioned internal dependencies. It is an
//! implementation detail of Nyx Agent, not a stable public API.
//!
//! Ships the trait, the `BudgetTracker` host port, the direct-HTTP
//! Anthropic Messages adapter, the OpenAI-compatible local-LLM
//! adapter, and the Claude Code / Codex CLI all-in-one drivers.
//! OpenAI API / Bedrock / Vertex remain on the roadmap. Adapters
//! depend only on `nyx-agent-types`; the agent binary wires the
//! host-side budget port to `nyx-agent-core`'s `BudgetStore` at startup.

pub mod adapter;
pub mod runtime;
pub mod tasks;

pub use adapter::anthropic::{
    AnthropicSdkAdapter, Pricing, ANTHROPIC_VERSION, DEFAULT_BASE_URL, DEFAULT_RANKING_MODEL,
    DEFAULT_SYNTHESIS_MODEL,
};
pub use adapter::claude_code::{
    detect_claude_binary, parse_stream_json, ClaudeBinary, ClaudeCodeAdapter,
    DEFAULT_CLAUDE_BINARY, MINIMUM_CLAUDE_VERSION,
};
pub use adapter::codex::{
    detect_codex_binary, parse_codex_jsonl, CodexBinary, CodexCliAdapter, DEFAULT_CODEX_BINARY,
    MINIMUM_CODEX_VERSION,
};
pub use adapter::local_llm::{LocalLlmAdapter, DEFAULT_LOCAL_LLM_MODEL};
pub use runtime::{
    deterministic_seed, AiRuntime, BudgetTracker, InMemoryBudgetTracker, SharedBudgetTracker,
};
pub use tasks::attack_agent::{
    run as run_attack_agent, AttackAgentAuditEntry, AttackAgentKnownLead, AttackAgentOutcome,
    AttackAgentProfile, AttackAgentScope, AttackAgentVulnerability, AttackWorkspace,
    ExistingVulnerabilitySummary, ATTACK_AGENT_PROMPT_VERSION, DEFAULT_ATTACK_AGENT_MAX_TURNS,
    DEFAULT_ATTACK_AGENT_PROFILES, SPECIALIST_ATTACK_AGENT_PROFILES,
};
pub use tasks::auth_setup::{
    run as run_auth_setup, AuthSetupOutcome, AuthSetupScope, AUTH_SETUP_PROMPT_VERSION,
    DEFAULT_AUTH_SETUP_RUN_CAP_USD_MICROS,
};
pub use tasks::chain_reasoning::{
    run as run_chain_reasoning, run_agentic as run_agentic_chain_reasoning, ChainReasoningOutcome,
    ChainReasoningWorkspace,
};
pub use tasks::exploration::{
    run as run_exploration, AuditEntry as ExplorationAuditEntry, EscapeSuiteGate,
    EscapeSuiteVerdict, ExplorationEndpoint, ExplorationFinding, ExplorationHaltReason,
    ExplorationKnownLead, ExplorationOutcome, ExplorationScope,
    DEFAULT_EXPLORATION_RUN_CAP_USD_MICROS, DEFAULT_EXPLORATION_SOFT_CAP_USD_MICROS,
    DEFAULT_EXPLORATION_WALL_CLOCK, EXPLORATION_PROMPT_VERSION,
    EXPLORATION_RESEARCH_PROMPT_VERSION,
};
pub use tasks::live_evidence_review::{
    run as run_live_evidence_review, LiveEvidenceReviewDecision, LiveEvidenceReviewInput,
    LiveEvidenceReviewOutcome, LiveEvidenceReviewOutput, LIVE_EVIDENCE_REVIEW_PROMPT_VERSION,
};
pub use tasks::novel_findings::{run as run_novel_findings, NovelFindingDiscoveryOutcome};
pub use tasks::payload_synthesis::{run as run_payload_synthesis, PayloadSynthesisOutcome};
pub use tasks::project_setup::{
    run as run_project_setup, ProjectSetupOutcome, ProjectSetupScope,
    DEFAULT_PROJECT_SETUP_RUN_CAP_USD_MICROS, PROJECT_SETUP_PROMPT_VERSION,
};
pub use tasks::remediation::{
    run as run_remediation, RemediationOutcome, RemediationScope,
    DEFAULT_REMEDIATION_RUN_CAP_USD_MICROS, REMEDIATION_PROMPT_VERSION,
};
pub use tasks::seed_setup::{
    run as run_seed_setup, SeedSetupOutcome, SeedSetupScope, DEFAULT_SEED_SETUP_RUN_CAP_USD_MICROS,
    SEED_SETUP_PROMPT_VERSION,
};
pub use tasks::spec_derivation::{
    read_excerpt as read_spec_excerpt, run as run_spec_derivation, SpecDerivationOutcome,
};