pub mod agent_identity;
pub mod agentic;
pub mod agents;
pub mod api_surface;
pub mod artifact;
#[cfg(feature = "ast")]
pub mod ast_outline;
pub mod atomic_fs;
pub mod attempts;
pub mod attribution;
pub mod backend_probe;
pub mod build_info;
pub mod card_catalog;
pub mod caveat_pack;
pub mod caveats;
pub mod classifiers;
pub mod cognition;
pub mod commit_signing;
pub mod config;
pub mod confined_exec;
pub mod conversation;
pub mod credential_registry;
pub mod denial_journal;
pub mod dgx;
pub mod dock_registry;
pub mod drift_cache;
pub mod durable_grants;
pub mod enrollment;
pub mod error;
pub mod event_journal;
pub mod ffi_manifest;
pub mod ffi_surface;
pub mod flight_recorder;
mod native_git_broker;
pub mod netguard;
pub mod owned_hosts;
pub mod permission_journal;
pub mod workspace_protection;
pub mod worktree_adoption;
#[cfg(any(target_os = "macos", all(test, unix)))]
mod fs_aliases;
#[cfg(any(target_os = "linux", target_os = "macos"))]
pub mod fs_cap;
pub mod git_caveats;
pub mod git_hardening;
pub mod git_staging;
pub mod grant_tree;
pub mod grounding;
pub mod initiative;
pub mod interaction_adapter;
pub mod interaction_form;
pub mod interaction_gate;
pub mod interaction_offer;
pub mod interaction_terminal;
pub mod interaction_resolution;
pub mod interaction_surface;
#[cfg(feature = "markdown")]
pub mod interaction_view;
pub mod kit;
pub mod launch_authority;
pub mod lazy_emission;
pub mod lifecycle;
pub mod loop_watch;
pub mod markup;
pub mod mcp;
pub mod mcp_catalog;
pub mod mcp_probe;
pub mod memory;
pub mod metrics;
pub mod model_card;
pub mod model_id;
pub mod navigator;
pub mod notes;
pub mod notes_scan;
pub mod nudger;
pub mod ocap;
pub mod ocap_propose;
pub mod ocap_store;
pub mod operating_mode;
pub mod permission_challenge;
pub mod plan;
pub mod posture;
pub mod pricing;
pub mod process_env;
pub mod progress;
pub mod project_map;
pub mod project_model;
pub mod prompt;
pub mod provider_preset;
pub mod prune;
pub mod psyche;
pub mod psyche_import;
pub mod reasoning;
pub mod responses_wire;
pub mod retry;
pub mod roadmap_eval;
pub mod roadmap_file;
pub mod role_profile;
pub mod router;
pub mod runtime;
pub mod sas_confirm;
pub mod sas_transcript;
pub mod scope_grounding;
pub mod scratch;
pub mod secrets;
pub mod session;
pub mod settings;
pub mod settings_receipt;
pub mod shell_env;
pub mod ssh_caveats;
pub mod stack;
pub mod store;
pub mod symbols;
pub mod templates;
pub mod tenacity;
pub mod test_guard;
pub mod timer;
pub mod tokens;
pub mod tooling;
pub mod tty;
pub mod tuning;
pub mod verify_gate;
pub mod where_is;
mod wire_framing;
pub mod workflows;
pub mod workspace_key;
#[cfg(feature = "pyo3")]
pub mod pyo3_module;
pub fn maybe_dispatch() -> Option<i32> {
#[cfg(target_os = "macos")]
fs_aliases::initialize();
native_git_broker::maybe_dispatch().or_else(agent_bridle::maybe_dispatch)
}
pub use agent_identity::{
default_operator, AgentIdentity, GithubApp, IdentitySource, Secret, SecretRef,
AGENT_IDENTITY_FILENAME, DEFAULT_AGENT_EMAIL, DEFAULT_AGENT_NAME, GITHUB_APP_BOT_EMAIL,
GITHUB_APP_BOT_NAME,
};
pub use agent_mesh_protocol::{Caveats, CountBound, Scope};
pub use agentic::preserve_mcp_resource_url_affinity;
pub use agentic::wrap_untrusted;
pub use agentic::{
append_denial, chat_complete, chat_complete_with_prompt, compress_user_initiated,
compress_user_initiated_for_task, execute_tool, experience_block, format_index_status,
format_search_hits, format_search_model, format_search_preview, format_search_rejects,
fresh_multi_step_plan, gather_code_files, gather_with_manifest, index_files, load_denials,
memory_fetch_tool_definition, openai_chat_complete, openai_chat_complete_with_prompt,
openai_responses_complete, openai_responses_complete_with_prompt, parse_context_window_error,
plan_block, plan_verdict, recover_context_window_400, render_code_evidence, retrieve_evidence,
retrieve_evidence_steered, retrieve_ranked, set_spill_lines, set_spill_summary,
set_time_marker_secs, transcript_lines, transcript_lines_styled, trim_for_summary,
widen_caveats, BehaviorSignal, ChatCtx, CodeSearch, CompressCounters, CompressState,
DenialKind, Embedder, EmbeddingsClient, ErrorClass, EvidenceKind, ExperienceStore,
ExposureSettings, GatherCaps, GatherManifest, HeadlessCodeSearch, HumanQuestionOutcome,
IndexStatus, LiveToolOutput, ManualCompressOutcome, ManualCompressPolicy, McpTools, MemAddr,
MemPayload, MemorySource, NoMcp, NoteNudge, NoteSink, ParseSignal, PermissionAction,
PermissionDecision, PermissionGate, PermissionRecord, PermissionRequest, PlanDraft,
PlanDraftSink, PlanEntry, PlanModeControl, PlanSnapshot, PlanVerdict, RankedHit, RecallSource,
RejectReason, RetrievalResult, RetrievalSteer, RoundObservation, ScratchpadStore,
SemanticIndex, SessionExperienceStore, SessionScratchpadStore, SessionSemanticIndex,
SessionSpillStore, SessionStepLedger, ShellObservation, SolveObservation, SpillStore, Step,
StepLedger, StepStatus, StoreMemorySource, StoreRecallSource, SummarizeFn, SummarizeFuture,
Summarizer, ToolCallDialect, ToolOutputStream, TranscriptLine, TranscriptRole, TranscriptStyle,
TurnDriver, TurnDriverConfig, TurnDriverError, TurnOutcome, TurnStatus, BOUND_REASON_PREFIX,
EXPERIENCE_TOP_K, MCP_RESOURCE_URL_PREFIXES_META_KEY,
};
pub use agents::AgentsProvider;
pub use api_surface::{resolve_surface_budget, ApiSurfaceProvider};
pub use artifact::{
ArtifactId, ArtifactKind, ArtifactRelation, NewPromptArtifact, PromptArtifact,
MAX_ARTIFACT_BODY_BYTES, MAX_ARTIFACT_LOCATOR_BYTES, MAX_ARTIFACT_METADATA_BYTES,
};
pub use caveats::{permits_path, CaveatsExt, CountBoundExt, ScopeExt};
pub use classifiers::{
classifier_config_dir, NudgeClass, NudgeClassification, NudgeClassifier, NudgeClassifierConfig,
};
#[allow(deprecated)]
pub use config::writeback_probed_backend;
pub use config::{
claim_backend_dropin_as_operator, classify_backend_dropin, confined_default_engine,
derive_serving, full_access_default_engine, mcp_stdio_env_passthrough, ocap_l3_backend,
persist_probe_observation, render_operator_backend_dropin, resolve_shell_engine,
resolve_shell_engine_choice, resolved_confined_default, shell_env_passthrough_default,
write_backend_dropin, AgentsConfig, BackendConfig, BackendDestination, BackendKind,
BackendRequest, BackendResolutionReceipt, BundleConfig, ColorMode, CompactionTriggerPolicy,
Config, ContextConfig, ContextFeature, ContextFeatureSet, ContextFeatures, ContextManager,
ConversationsConfig, CrewPolicyConfig, DeclaredBackend, DropinOwnership, EditMode,
ExposureProfile, FooterMode, IntakeConfig, Loadout, LoadoutSettings, LogConfig, ManagedMode,
MarkdownMode, MemoryConfig, MemoryDisclosure, MemoryProviderKind, OnEmbedFailure, OpenAiApi,
PermissionPreset, PickVia, PlanConfig, PlanPruneConfig, ProbeObservation, ProbeWriteback,
ProbedServing, ProfilePick, ProviderConfig, RequestMode, ResolvedBackend, ResolvedConfig,
RunCommandBudget, ScratchConfig, SemanticConfig, Serving, ShellConfig, ShellEngine,
SkillsConfig, SummarizerConfig, ThinkingMode, ToolExposureConfig, ToolPermissions, TuiConfig,
};
pub use conversation::{
new_conversation_id, session_plan_dir, session_plan_path, ConversationRecord,
ConversationSummary, ConversationTurn, ExecOutcome, PhantomReach, PhantomResolution, ToolEvent,
};
pub use ffi_surface::FfiSurfaceProvider;
pub use initiative::Initiative;
pub use navigator::{
compare_ledgers, compare_semantic_lexical, execute_nav_tool, export_ledger_json,
export_ledger_markdown, find_callees, find_callers, find_hierarchy, find_implementations,
find_references, find_tests, format_ledger_diff, format_ledger_human, format_ledger_model,
goto_definition, hash_context, impact_analysis, inspect_type, project_map_nav, text_search,
GotoDefinitionArgs, GraphIndex, ImpactReport, NavHit, NavResult, NavToolCtx, NavigatorSession,
RetrievalLedger, TurnRetrieval, UsageIndex, UsageSite, NAV_TOOL_NAMES,
};
pub use project_map::ProjectMapProvider;
pub use runtime::{
BackendAxisAction, BackendState, OperatorPreferencePin, PreferenceActions, PreferenceApplyPlan,
PreferenceAxes, RouteModel, RuntimeSettingsSnapshot,
};
pub use tenacity::Tenacity;
pub use where_is::{
build_where_is_index, build_where_is_index_from_workspace, execute_where_is,
where_is_tool_definition, LookupVerdict, WhereIsIndex, Witness,
};
pub use kit::{Axis, MountKind, RegistryEntry, COMPONENT_REGISTRY};
pub use dgx::{DgxConfig, DgxFormation, DgxNode, DgxNotConfigured, EndpointKind};
pub use error::NewtError;
pub use memory::{
persist_compaction_summary, MemMessage, MemoryIndex, MemoryManager, MemoryProvider, NoteStore,
NotesUnsupported, Role, RollingWindow, SessionContext, SoulProvider, SoulSource, Summarizing,
TokenBudget, COACH_SOUL, DEFAULT_CONTEXT_TOKENS, DEFAULT_SOUL, MEMORY_INDEX_BUDGET,
};
pub use metrics::{TokenUsage, TurnEndReason, TurnMetrics};
pub use model_id::ModelId;
pub use pricing::{ModelRate, PricingConfig};
pub use prompt::{
ActivePrompt, NewPrompt, PromptId, PromptOrigin, PromptReceipt, TurnPromptContext,
};
pub use reasoning::{split_reasoning, ThinkFilter};
pub use role_profile::{
Altitude, CaveatProfile, NamedPermissionPreset, RoleProfile, ScopeKeyword, ScopeSpec,
};
pub use router::{Router, Tier};
pub use session::SessionId;
pub use interaction_offer::{OfferDanger, PendingOffer};
pub use newt_interaction::Audience;
pub use newt_interaction::ControlKind;
pub use newt_interaction::InteractionDefinition;
pub use store::{
sanitize_fts5_query, AnswerOutcome, ClaimOutcome, ConversationStore, InjectOutcome,
InjectedPrompt, LivenessFn, Roadmap, RoadmapSummary, SearchHit, StoredOwner, Verdict,
};
pub use tokens::TokenEstimation;
pub use tty::{Action, Question};
pub use workflows::{
builtin_workflows, load_workflows_from_dir, merge_workflows, workflow_config_dir,
WorkflowClassifierConfig, WorkflowConfig, WorkflowSteerer, WorkflowStep,
};
pub use workspace_key::workspace_key_v2;
pub mod ambient_brush;
pub mod exec_grants;