From 0a3c364a6cf24b1ee101e36ea271daf5081d5526 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 18 Jul 2026 17:16:30 +0100 Subject: [PATCH] Build the resident organizational Self --- .gitignore | 1 - .../src/bin/epiphany-heartbeat-store.rs | 13 + .../src/bin/epiphany-mvp-coordinator.rs | 62 + epiphany-core/src/bin/epiphany-release.rs | 1 - epiphany-core/src/bin/epiphany-swarm.rs | 1349 +-- epiphany-core/src/heartbeat_state.rs | 137 +- .../heartbeat_state/heartbeat_documents.rs | 2 + .../src/heartbeat_state/heartbeat_store.rs | 40 +- epiphany-core/src/lib.rs | 4 + epiphany-core/src/packaged_release.rs | 325 +- epiphany-core/src/process_observation.rs | 70 +- epiphany-core/src/resident_self.rs | 1712 ++++ epiphany-core/src/runtime_spine.rs | 33 + epiphany-openai-runtime/Cargo.lock | 8092 +++++++++++++++++ epiphany-tool-codex-mcp-spine/Cargo.lock | 11 + notes/epiphany-current-algorithmic-map.md | 47 + notes/fresh-workspace-handoff.md | 52 + state/ledgers.msgpack | Bin 528479 -> 529095 bytes state/map.yaml | 3 +- 19 files changed, 10895 insertions(+), 1059 deletions(-) create mode 100644 epiphany-core/src/resident_self.rs create mode 100644 epiphany-openai-runtime/Cargo.lock diff --git a/.gitignore b/.gitignore index eb71433e..727859f8 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ epiphany-openai-adapter/Cargo.lock epiphany-openai-codex-spine/target/ epiphany-openai-codex-spine/Cargo.lock epiphany-openai-runtime/target/ -epiphany-openai-runtime/Cargo.lock epiphany-codex-bridge/target/ epiphany-codex-bridge/Cargo.lock apps/epiphany-gui/node_modules/ diff --git a/epiphany-core/src/bin/epiphany-heartbeat-store.rs b/epiphany-core/src/bin/epiphany-heartbeat-store.rs index f46b420f..f3fc8f3f 100644 --- a/epiphany-core/src/bin/epiphany-heartbeat-store.rs +++ b/epiphany-core/src/bin/epiphany-heartbeat-store.rs @@ -57,6 +57,7 @@ fn main() -> Result<()> { let mut action_id: Option = None; let mut limit = 8_usize; let mut agent_store: Option = None; + let mut resident_self_store: Option = None; let mut apply_rumination = false; let mut profile = "epiphany".to_string(); let mut scene_id = "ghostlight.scene".to_string(); @@ -123,6 +124,9 @@ fn main() -> Result<()> { "--action-id" => action_id = Some(next_value(&mut args, "--action-id")?), "--limit" => limit = next_value(&mut args, "--limit")?.parse()?, "--agent-store" => agent_store = Some(next_path(&mut args, "--agent-store")?), + "--resident-self-store" => { + resident_self_store = Some(next_path(&mut args, "--resident-self-store")?) + } "--apply-rumination" => apply_rumination = true, "--profile" => profile = next_value(&mut args, "--profile")?, "--scene-id" => scene_id = next_value(&mut args, "--scene-id")?, @@ -219,6 +223,7 @@ fn main() -> Result<()> { source_scene_ref, defer_completion, agent_store: agent_store.clone(), + resident_self_store: resident_self_store.clone(), }, )?; if apply_rumination { @@ -288,6 +293,7 @@ fn main() -> Result<()> { schedule_id, source_scene_ref, agent_store, + resident_self_store, }, )?; println!("{}", result); @@ -638,6 +644,7 @@ fn run_smoke(agent_store: &Path) -> Result { source_scene_ref: "smoke/coordinator".to_string(), defer_completion: true, agent_store: Some(temp_agent_store.clone()), + resident_self_store: None, }, )?; let blocked_repeat = tick_heartbeat_store( @@ -652,6 +659,7 @@ fn run_smoke(agent_store: &Path) -> Result { source_scene_ref: "smoke/coordinator".to_string(), defer_completion: true, agent_store: Some(temp_agent_store.clone()), + resident_self_store: None, }, ) .err() @@ -681,6 +689,7 @@ fn run_smoke(agent_store: &Path) -> Result { source_scene_ref: "smoke/idle".to_string(), defer_completion: false, agent_store: Some(temp_agent_store.clone()), + resident_self_store: None, }, )?; @@ -732,6 +741,7 @@ fn run_smoke(agent_store: &Path) -> Result { schedule_id: "smoke-relaxed-pump".to_string(), source_scene_ref: "smoke/relaxed".to_string(), agent_store: Some(temp_agent_store.clone()), + resident_self_store: None, }, )?; let alarmed_store_path = temp_dir.join("alarmed-heartbeats.msgpack"); @@ -752,6 +762,7 @@ fn run_smoke(agent_store: &Path) -> Result { schedule_id: "smoke-alarmed-pump".to_string(), source_scene_ref: "smoke/alarmed".to_string(), agent_store: Some(temp_agent_store.clone()), + resident_self_store: None, }, )?; let stale_store_path = temp_dir.join("stale-heartbeats.msgpack"); @@ -768,6 +779,7 @@ fn run_smoke(agent_store: &Path) -> Result { source_scene_ref: "smoke/stale".to_string(), defer_completion: true, agent_store: Some(temp_agent_store.clone()), + resident_self_store: None, }, )?; let stale_repair = recover_stale_heartbeat_store( @@ -791,6 +803,7 @@ fn run_smoke(agent_store: &Path) -> Result { source_scene_ref: "smoke/stale".to_string(), defer_completion: true, agent_store: Some(temp_agent_store.clone()), + resident_self_store: None, }, )?; let initiative_errors = validate_schedule_shape(&work["schedule"]) diff --git a/epiphany-core/src/bin/epiphany-mvp-coordinator.rs b/epiphany-core/src/bin/epiphany-mvp-coordinator.rs index e9192af6..fa3b3d73 100644 --- a/epiphany-core/src/bin/epiphany-mvp-coordinator.rs +++ b/epiphany-core/src/bin/epiphany-mvp-coordinator.rs @@ -29,6 +29,9 @@ use epiphany_core::put_substrate_gate_repo_access_grant_receipt; use epiphany_core::runtime_spine_status; use epiphany_core::select_and_commit_repo_frontier_route; use epiphany_core::substrate_gate_coordinator_implementation_grant; +use epiphany_core::{ + LaunchedCoordinator, capture_process_instance, claim_resident_self_preparation_as_child, +}; use serde_json::Value; use serde_json::json; use std::collections::BTreeMap; @@ -86,6 +89,9 @@ struct Args { supersede_failed_results: bool, auto_tools: bool, proposal_modeling_request_id: Option, + resident_binding: BTreeMap, + resident_state_store: Option, + resident_preparation_id: Option, } impl Args { @@ -119,6 +125,9 @@ impl Args { supersede_failed_results: false, auto_tools: true, proposal_modeling_request_id: None, + resident_binding: BTreeMap::new(), + resident_state_store: None, + resident_preparation_id: None, }; while let Some(arg) = args.next() { match arg.as_str() { @@ -143,6 +152,27 @@ impl Args { parsed.proposal_modeling_request_id = Some(take_string(&mut args, "--proposal-modeling-request-id")?); } + flag @ ("--resident-grant-id" + | "--resident-launch-digest" + | "--resident-policy-digest" + | "--resident-argv-digest" + | "--resident-objective-digest" + | "--resident-release-commit" + | "--resident-release-manifest-digest" + | "--resident-executable-digest") => { + parsed.resident_binding.insert( + flag.trim_start_matches("--resident-").to_string(), + take_string(&mut args, flag)?, + ); + } + "--resident-state-store" => { + parsed.resident_state_store = + Some(take_path(&mut args, "--resident-state-store")?) + } + "--resident-preparation-id" => { + parsed.resident_preparation_id = + Some(take_string(&mut args, "--resident-preparation-id")?) + } "--cwd" => parsed.cwd = take_path(&mut args, "--cwd")?, "--codex-home" => parsed.codex_home = take_path(&mut args, "--codex-home")?, "--artifact-dir" => parsed.artifact_dir = take_path(&mut args, "--artifact-dir")?, @@ -190,6 +220,27 @@ impl Args { fn run_coordinator(args: &Args) -> Result { let root = env::current_dir().context("failed to resolve current dir")?; + match (&args.resident_state_store, &args.resident_preparation_id) { + (Some(store), Some(preparation_id)) => { + let identity = capture_process_instance(std::process::id())?; + claim_resident_self_preparation_as_child( + store, + preparation_id, + &LaunchedCoordinator { + process_id: identity.process_id, + process_creation_token: identity.creation_token, + process_executable_path: identity.executable_path, + }, + chrono::Utc::now().timestamp_millis().max(0) as u64, + )?; + } + (None, None) => {} + _ => { + return Err(anyhow!( + "resident coordinator bootstrap requires both state store and preparation id" + )); + } + } let local_verse_store = status_cli::absolute_path(&args.local_verse_store)?; assert_local_verse_brake_released(&local_verse_store, "epiphany-mvp-coordinator")?; let cwd = status_cli::absolute_path(&args.cwd)?; @@ -659,6 +710,17 @@ fn run_coordinator(args: &Args) -> Result { ), ("autoTools".to_string(), args.auto_tools.to_string()), ]), + resident_grant_id: args.resident_binding.get("grant-id").cloned(), + resident_launch_digest: args.resident_binding.get("launch-digest").cloned(), + resident_policy_digest: args.resident_binding.get("policy-digest").cloned(), + resident_argv_digest: args.resident_binding.get("argv-digest").cloned(), + resident_objective_digest: args.resident_binding.get("objective-digest").cloned(), + resident_release_commit: args.resident_binding.get("release-commit").cloned(), + resident_release_manifest_digest: args + .resident_binding + .get("release-manifest-digest") + .cloned(), + resident_executable_digest: args.resident_binding.get("executable-digest").cloned(), }; put_coordinator_run_receipt(&runtime_store, &coordinator_run_receipt)?; let summary = json!({ diff --git a/epiphany-core/src/bin/epiphany-release.rs b/epiphany-core/src/bin/epiphany-release.rs index 12e60395..a29c2c0e 100644 --- a/epiphany-core/src/bin/epiphany-release.rs +++ b/epiphany-core/src/bin/epiphany-release.rs @@ -50,7 +50,6 @@ fn main() -> Result<()> { store: &store, runtime_id: &runtime, target_triple: &target, - toolchain_fingerprint: &rustc, })?; let witness_sha256 = epiphany_packaged_release_witness_sha256(&witness)?; println!( diff --git a/epiphany-core/src/bin/epiphany-swarm.rs b/epiphany-core/src/bin/epiphany-swarm.rs index 8ebdd58d..5eccad2a 100644 --- a/epiphany-core/src/bin/epiphany-swarm.rs +++ b/epiphany-core/src/bin/epiphany-swarm.rs @@ -1,979 +1,432 @@ -use anyhow::Context; -use anyhow::Result; -use anyhow::anyhow; +use anyhow::{Context, Result, anyhow}; use chrono::Utc; -use serde_json::Value; +use epiphany_core::{ + ChildObservation, CoordinatorLaunch, LaunchedCoordinator, ProcessInstanceIdentity, + ProcessInstanceObservation, ResidentSelfOutcome, ResidentSelfPolicy, ResidentSelfPorts, + ResidentSelfPressure, ResidentSelfState, acknowledge_resident_self_launch, + authenticate_resident_self_policy, cancel_resident_self_turn, capture_process_instance, + complete_resident_self_turn, coordinator_run_receipts, enqueue_resident_self_pressure, + ingest_resident_self_domain_pressure, load_epiphany_cultmesh_swarm_brake, + load_resident_self_state, observe_process_instance, prepare_resident_self_launch, + resident_self_child_claim, terminate_process_instance, validate_resident_self_store_separation, +}; use serde_json::json; +use std::collections::BTreeMap; use std::env; -use std::fs; -use std::path::Path; use std::path::PathBuf; -use std::process::Command; +use std::process::{Child, Command}; +use std::thread; +use std::time::Duration; fn main() -> Result<()> { - let mut args = env::args().skip(1); - let Some(command) = args.next() else { - print_usage(); - std::process::exit(2); - }; - let result = match command.as_str() { - "online" => run_online(parse_online_args(args)?), - "run" | "run-queue" | "pulse" => run_swarm(parse_run_args(args)?), - other => Err(anyhow!("unknown epiphany-swarm command {other:?}")), - }?; - println!("{}", serde_json::to_string_pretty(&result)?); + let mut args = Args::parse()?; + authenticate_resident_self_policy(&mut args.policy)?; + args.policy.validate()?; + validate_resident_self_store_separation(&args.state_store, &args.policy)?; + if let Some(pressure) = args.pressure.as_ref() { + enqueue_resident_self_pressure(&args.state_store, pressure)?; + } + let mut state = load_resident_self_state(&args.state_store)?; + let mut ports = NativePorts::new(&args.policy); + match args.command { + CommandKind::Once => { + let outcome = cycle(&args, &mut state, &mut ports)?; + println!( + "{}", + serde_json::to_string_pretty(&summary(&state, &outcome))? + ); + } + CommandKind::Serve => loop { + let outcome = cycle(&args, &mut state, &mut ports)?; + println!("{}", serde_json::to_string(&summary(&state, &outcome))?); + let seconds = match outcome { + ResidentSelfOutcome::Failed => args.policy.failure_backoff_seconds, + ResidentSelfOutcome::Completed => args.policy.cooldown_seconds, + _ => args.policy.idle_sleep_seconds, + }; + thread::sleep(Duration::from_secs(seconds.max(1))); + }, + } Ok(()) } -#[derive(Clone, Debug)] -struct OnlineArgs { - workspace: PathBuf, - epiphany_root: PathBuf, - local_verse_store: Option, - state_dir: Option, - artifact_dir: Option, - runtime_id: Option, - init_receipt: Option, - agent_template_store: Option, -} - -#[derive(Clone, Debug)] -struct RunArgs { - workspace: PathBuf, - epiphany_root: PathBuf, - local_verse_store: Option, - artifact_dir: Option, - runtime_id: Option, - online_receipt: Option, - until: String, - max_iterations: u64, - max_items: u64, - loop_interval_seconds: u64, - cooldown_seconds: u64, - active_timeout_seconds: u64, - dry_run: bool, -} - -fn parse_online_args(args: impl Iterator) -> Result { - let mut workspace = None; - let mut epiphany_root = None; - let mut local_verse_store = None; - let mut state_dir = None; - let mut artifact_dir = None; - let mut runtime_id = None; - let mut init_receipt = None; - let mut agent_template_store = None; - - let mut args = args.peekable(); - while let Some(arg) = args.next() { - match arg.as_str() { - "--workspace" => workspace = Some(take_path(&mut args, "--workspace")?), - "--epiphany-root" => epiphany_root = Some(take_path(&mut args, "--epiphany-root")?), - "--local-verse-store" | "--store" => { - local_verse_store = Some(take_path(&mut args, "--local-verse-store")?); - } - "--state-dir" => state_dir = Some(take_path(&mut args, "--state-dir")?), - "--artifact-dir" => artifact_dir = Some(take_path(&mut args, "--artifact-dir")?), - "--runtime-id" => runtime_id = Some(take_string(&mut args, "--runtime-id")?), - "--init-receipt" => init_receipt = Some(take_path(&mut args, "--init-receipt")?), - "--agent-template-store" => { - agent_template_store = Some(take_path(&mut args, "--agent-template-store")?); - } - other => return Err(anyhow!("unexpected online argument {other:?}")), +fn cycle( + args: &Args, + state: &mut ResidentSelfState, + ports: &mut NativePorts, +) -> Result { + let now = Utc::now().timestamp_millis().max(0) as u64; + ingest_resident_self_domain_pressure( + &args.state_store, + &args.policy.runtime_store, + &args.policy.local_verse_store, + &args.policy.release_runtime_id, + now, + )?; + *state = load_resident_self_state(&args.state_store)?; + if let Some(prepared) = state.prepared_launch.clone() { + if let Some(claim) = resident_self_child_claim(&args.state_store, &prepared.preparation_id)? + { + acknowledge_resident_self_launch( + &args.state_store, + &prepared.preparation_id, + &LaunchedCoordinator { + process_id: claim.process_id, + process_creation_token: claim.process_creation_token, + process_executable_path: claim.executable_path, + }, + claim.claimed_at_millis, + )?; + *state = load_resident_self_state(&args.state_store)?; + return Ok(ResidentSelfOutcome::Running); } - } - Ok(OnlineArgs { - workspace: workspace.context("missing --workspace")?, - epiphany_root: epiphany_root - .unwrap_or(env::current_dir().context("failed to resolve current directory")?), - local_verse_store, - state_dir, - artifact_dir, - runtime_id, - init_receipt, - agent_template_store, - }) -} - -fn parse_run_args(args: impl Iterator) -> Result { - let mut workspace = None; - let mut epiphany_root = None; - let mut local_verse_store = None; - let mut artifact_dir = None; - let mut runtime_id = None; - let mut online_receipt = None; - let mut until = "blocked-or-published".to_string(); - let mut max_iterations = 8_u64; - let mut max_items = 1_u64; - let mut loop_interval_seconds = 0_u64; - let mut cooldown_seconds = 0_u64; - let mut active_timeout_seconds = 900_u64; - let mut dry_run = false; - - let mut args = args.peekable(); - while let Some(arg) = args.next() { - match arg.as_str() { - "--workspace" => workspace = Some(take_path(&mut args, "--workspace")?), - "--epiphany-root" => epiphany_root = Some(take_path(&mut args, "--epiphany-root")?), - "--local-verse-store" | "--store" => { - local_verse_store = Some(take_path(&mut args, "--local-verse-store")?); - } - "--artifact-dir" => artifact_dir = Some(take_path(&mut args, "--artifact-dir")?), - "--runtime-id" => runtime_id = Some(take_string(&mut args, "--runtime-id")?), - "--online-receipt" => online_receipt = Some(take_path(&mut args, "--online-receipt")?), - "--until" => until = take_string(&mut args, "--until")?, - "--max-iterations" | "--max-pulses" => { - max_iterations = take_u64(&mut args, "--max-iterations")?; - } - "--max-items" => max_items = take_u64(&mut args, "--max-items")?, - "--loop-interval-seconds" | "--interval-seconds" => { - loop_interval_seconds = take_u64(&mut args, "--loop-interval-seconds")?; - } - "--cooldown-seconds" => cooldown_seconds = take_u64(&mut args, "--cooldown-seconds")?, - "--active-timeout-seconds" => { - active_timeout_seconds = take_u64(&mut args, "--active-timeout-seconds")?; - } - "--dry-run" | "--no-execute" => dry_run = true, - other => return Err(anyhow!("unexpected run argument {other:?}")), + if ports.brake_engaged()? { + return Ok(ResidentSelfOutcome::Braked); } - } - Ok(RunArgs { - workspace: workspace.context("missing --workspace")?, - epiphany_root: epiphany_root - .unwrap_or(env::current_dir().context("failed to resolve current directory")?), - local_verse_store, - artifact_dir, - runtime_id, - online_receipt, - until, - max_iterations, - max_items, - loop_interval_seconds, - cooldown_seconds, - active_timeout_seconds, - dry_run, - }) -} - -fn run_online(args: OnlineArgs) -> Result { - let workspace = args - .workspace - .canonicalize() - .with_context(|| format!("failed to resolve {}", args.workspace.display()))?; - ensure_git_repo(&workspace)?; - let epiphany_root = args - .epiphany_root - .canonicalize() - .with_context(|| format!("failed to resolve {}", args.epiphany_root.display()))?; - let manifest_path = epiphany_root.join("epiphany-core").join("Cargo.toml"); - if !manifest_path.exists() { - return Err(anyhow!( - "could not find epiphany-core manifest at {}", - manifest_path.display() - )); - } - let init_receipt_path = args.init_receipt.unwrap_or_else(|| { - workspace - .join(".epiphany") - .join("repo-init") - .join("repo-swarm-init-receipt.json") - }); - let init_receipt = read_json(&init_receipt_path) - .with_context(|| format!("repo swarm init receipt is required; run epiphany-repo init first or pass --init-receipt"))?; - let state_dir = args.state_dir.unwrap_or_else(|| { - path_from_json(&init_receipt, &["stores", "stateDir"]) - .unwrap_or_else(|| workspace.join(".epiphany").join("state")) - }); - let artifact_dir = args - .artifact_dir - .unwrap_or_else(|| workspace.join(".epiphany").join("swarm-online")); - let local_verse_store = args - .local_verse_store - .unwrap_or_else(|| workspace.join(".epiphany").join("local-verse.ccmp")); - let agent_store = state_dir.join("agents.msgpack"); - let runtime_id = args.runtime_id.unwrap_or_else(|| { - format!( - "repo-swarm-{}", - workspace - .file_name() - .and_then(|name| name.to_str()) - .map(sanitize) - .unwrap_or_else(|| "workspace".to_string()) - ) - }); - fs::create_dir_all(&state_dir) - .with_context(|| format!("failed to create {}", state_dir.display()))?; - fs::create_dir_all(&artifact_dir) - .with_context(|| format!("failed to create {}", artifact_dir.display()))?; - if let Some(parent) = local_verse_store.parent() { - fs::create_dir_all(parent) - .with_context(|| format!("failed to create {}", parent.display()))?; - } - - let agent_seed = ensure_agent_store( - &agent_store, - args.agent_template_store - .unwrap_or_else(|| epiphany_root.join("state").join("agents.msgpack")), - )?; - let soa_refresh = cargo_json( - &manifest_path, - "epiphany-agent-memory-store", - &[ - "refresh-soa".to_string(), - "--store".to_string(), - agent_store.display().to_string(), - ], - )?; - - let seed = verse_json( - &manifest_path, - "seed-compact", - &local_verse_store, - &runtime_id, - &[], - )?; - let agent_state = verse_json( - &manifest_path, - "agent-state", - &local_verse_store, - &runtime_id, - &[ - "--agent-store".to_string(), - agent_store.display().to_string(), - ], - )?; - let agent_state_report = verse_json( - &manifest_path, - "agent-state-report", - &local_verse_store, - &runtime_id, - &[], - )?; - let topology = verse_json( - &manifest_path, - "cluster-topology", - &local_verse_store, - &runtime_id, - &[], - )?; - let liveness = verse_json( - &manifest_path, - "swarm-status", - &local_verse_store, - &runtime_id, - &[], - )?; - let tool_directory = verse_json( - &manifest_path, - "tool-directory", - &local_verse_store, - &runtime_id, - &[], - )?; - let overview = verse_json( - &manifest_path, - "swarm-overview", - &local_verse_store, - &runtime_id, - &[], - )?; - - let receipt = json!({ - "schemaVersion": "epiphany.repo_swarm_online_receipt.v0", - "createdAt": Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true), - "workspace": workspace, - "runtimeId": runtime_id, - "initReceiptPath": init_receipt_path, - "localVerseStore": local_verse_store, - "stateDir": state_dir, - "agentStore": agent_store, - "agentSeed": agent_seed, - "seed": seed, - "soaRefresh": compact_fields(&soa_refresh, &["rowCount", "roleIds", "ok"]), - "agentState": compact_fields(&agent_state, &["status", "summaryId", "rowCount", "privateStateExposed"]), - "agentStateReport": compact_fields(&agent_state_report, &["status", "agentCount", "roleIds", "privateStateExposed"]), - "topology": compact_fields(&topology, &["status", "declaredFacultyCount", "declaredPrivateVerseRouteCount", "declaredDaemonTargetCount", "publicDiscussionClusterCount", "privateStateExposed"]), - "liveness": compact_fields(&liveness, &["status", "observedDaemonCount", "nonReadyCount", "privateStateExposed"]), - "toolDirectory": summarize_tool_directory(&tool_directory), - "overview": compact_fields(&overview, &["status", "observedDaemonCount", "declaredFacultyCount", "declaredPrivateVerseRouteCount", "declaredDaemonTargetCount", "toolCount", "privateStateExposed", "recommendedWrapperMode", "recommendedWrapperCommand"]), - "proofBundle": { - "repoLocalAgentStateSoa": agent_state_report["summaryId"], - "clusterTopology": topology["schemaVersion"], - "idunnLiveness": liveness["schemaVersion"], - "globalToolDirectory": tool_directory["schemaVersion"], - "swarmOverview": overview["schemaVersion"], - "privateStateExposed": false - }, - "nextSafeMove": "Accept a Persona or Bifrost work item into typed Imagination/Self action pressure; the next missing command is epiphany-work accept --workspace ." - }); - let receipt_path = artifact_dir.join("repo-swarm-online-receipt.json"); - write_json(&receipt_path, &receipt)?; - Ok(json!({ - "schemaVersion": "epiphany.repo_swarm_online.v0", - "status": overview.get("status").cloned().unwrap_or_else(|| json!("ok")), - "workspace": receipt["workspace"], - "runtimeId": receipt["runtimeId"], - "localVerseStore": receipt["localVerseStore"], - "receiptPath": receipt_path, - "agentSeed": receipt["agentSeed"], - "agentState": receipt["agentState"], - "topology": receipt["topology"], - "liveness": receipt["liveness"], - "toolDirectory": receipt["toolDirectory"], - "overview": receipt["overview"], - "privateStateExposed": false, - "nextSafeMove": receipt["nextSafeMove"], - })) -} - -fn run_swarm(args: RunArgs) -> Result { - if args.max_iterations == 0 { - return Err(anyhow!( - "epiphany-swarm run requires --max-iterations greater than 0" - )); - } - if args.max_items == 0 { - return Err(anyhow!( - "epiphany-swarm run requires --max-items greater than 0" - )); - } - if args.until != "blocked-or-published" && args.until != "blocked-or-noop" { - return Err(anyhow!( - "unsupported --until {:?}; supported values are blocked-or-published and blocked-or-noop", - args.until - )); - } - - let workspace = args - .workspace - .canonicalize() - .with_context(|| format!("failed to resolve {}", args.workspace.display()))?; - ensure_git_repo(&workspace)?; - let epiphany_root = args - .epiphany_root - .canonicalize() - .with_context(|| format!("failed to resolve {}", args.epiphany_root.display()))?; - let manifest_path = epiphany_root.join("epiphany-core").join("Cargo.toml"); - if !manifest_path.exists() { - return Err(anyhow!( - "could not find epiphany-core manifest at {}", - manifest_path.display() - )); - } - let online_receipt_path = args.online_receipt.clone().unwrap_or_else(|| { - workspace - .join(".epiphany") - .join("swarm-online") - .join("repo-swarm-online-receipt.json") - }); - let online_receipt = read_json(&online_receipt_path).with_context( - || "repo swarm online receipt is required; run epiphany-swarm online first", - )?; - let local_verse_store = args.local_verse_store.clone().unwrap_or_else(|| { - path_from_json(&online_receipt, &["localVerseStore"]) - .unwrap_or_else(|| workspace.join(".epiphany").join("local-verse.ccmp")) - }); - let runtime_id = args.runtime_id.clone().unwrap_or_else(|| { - string_from_json(&online_receipt, &["runtimeId"]) - .unwrap_or_else(|| "repo-swarm-local".to_string()) - }); - let artifact_dir = args - .artifact_dir - .clone() - .unwrap_or_else(|| workspace.join(".epiphany").join("swarm-run")); - fs::create_dir_all(&artifact_dir) - .with_context(|| format!("failed to create {}", artifact_dir.display()))?; - - let started_at = Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true); - let mut iterations = Vec::new(); - let mut stop_reason = "max-iterations-reached".to_string(); - for pulse_index in 1..=args.max_iterations { - let queue_run = cargo_json( - &manifest_path, - "epiphany-work", - &queue_run_args( - &args, - &workspace, - &epiphany_root, - &local_verse_store, - &runtime_id, - ), - ) - .with_context(|| format!("epiphany-work queue-run pulse {pulse_index} failed"))?; - let queue_status = queue_run - .get("status") - .and_then(Value::as_str) - .unwrap_or("unknown") - .to_string(); - let actionable_count = queue_run - .get("actionableCount") - .and_then(Value::as_u64) - .unwrap_or(0); - let iteration = json!({ - "pulse": pulse_index, - "queueRunStatus": queue_status, - "actionableCount": actionable_count, - "queueCount": queue_run["queueCount"], - "queueRows": queue_run["queueRows"], - "selectedRows": queue_run["selectedRows"], - "outputs": queue_run["outputs"], - "receiptPath": queue_run["receiptPath"], - "privateStateExposed": queue_run["privateStateExposed"] - }); - iterations.push(iteration); - if queue_status == "blocked-or-noop" || actionable_count == 0 { - stop_reason = "blocked-or-noop".to_string(); - break; - } - if queue_status == "would-advance" && args.dry_run { - stop_reason = "dry-run-preview-complete".to_string(); - break; - } - if pulse_index < args.max_iterations && args.loop_interval_seconds > 0 { - std::thread::sleep(std::time::Duration::from_secs(args.loop_interval_seconds)); - } - } - let completed_at = Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true); - let status = if stop_reason == "max-iterations-reached" { - "paused-at-iteration-limit" - } else if stop_reason == "dry-run-preview-complete" { - "dry-run-preview" - } else { - "blocked-or-noop" - }; - let next_safe_move = match stop_reason.as_str() { - "blocked-or-noop" => { - "Inspect repo-work overview blockers, then route planning, closure, publication, or sync through the owning organ." - } - "dry-run-preview-complete" => { - "Rerun epiphany-swarm run without --dry-run to advance the selected branch-local queue row." - } - _ => { - "Rerun epiphany-swarm run only while repo-work queue rows remain tick-actionable and authority gates stay branch-local." - } - }; - let stop_classification = classify_run_stop( - &stop_reason, - status, - args.until.as_str(), - args.dry_run, - args.max_iterations, - &iterations, - next_safe_move, - ); - let receipt_path = artifact_dir.join("repo-swarm-run-receipt.json"); - let receipt = json!({ - "schemaVersion": "epiphany.repo_swarm_run_receipt.v0", - "createdAt": completed_at, - "startedAt": started_at, - "completedAt": completed_at, - "status": status, - "stopReason": stop_reason, - "stopClassification": stop_classification, - "workspace": workspace, - "runtimeId": runtime_id, - "localVerseStore": local_verse_store, - "onlineReceiptPath": online_receipt_path, - "until": args.until, - "scheduler": { - "owner": "Self", - "mouth": "epiphany-swarm run", - "delegatesQueueSelectionTo": "epiphany-work queue-run", - "delegatesActuationTo": "epiphany-work tick", - "maxIterations": args.max_iterations, - "maxItems": args.max_items, - "loopIntervalSeconds": args.loop_interval_seconds, - "cooldownSeconds": args.cooldown_seconds, - "activeTimeoutSeconds": args.active_timeout_seconds, - "dryRun": args.dry_run - }, - "iterations": iterations, - "iterationCount": iterations.len(), - "authority": { - "branchLocalOnly": true, - "publicationAuthorized": false, - "mergeAuthorized": false, - "serviceLifecycleAuthorized": false, - "crossRepoMutationAuthorized": false, - "privateStateExposed": false - }, - "nextSafeMove": next_safe_move, - "privateStateExposed": false - }); - write_json(&receipt_path, &receipt)?; - Ok(json!({ - "schemaVersion": "epiphany.repo_swarm_run.v0", - "status": receipt["status"], - "stopReason": receipt["stopReason"], - "stopClassification": receipt["stopClassification"], - "workspace": receipt["workspace"], - "runtimeId": receipt["runtimeId"], - "localVerseStore": receipt["localVerseStore"], - "receiptPath": receipt_path, - "iterationCount": receipt["iterationCount"], - "iterations": receipt["iterations"], - "authority": receipt["authority"], - "privateStateExposed": false, - "nextSafeMove": receipt["nextSafeMove"], - })) -} - -fn classify_run_stop( - stop_reason: &str, - status: &str, - until: &str, - dry_run: bool, - max_iterations: u64, - iterations: &[Value], - next_safe_move: &str, -) -> Value { - let final_iteration = iterations.last(); - let queue_status = final_iteration - .and_then(|iteration| iteration.get("queueRunStatus")) - .and_then(Value::as_str) - .unwrap_or("not-run"); - let actionable_count = final_iteration - .and_then(|iteration| iteration.get("actionableCount")) - .and_then(Value::as_u64) - .unwrap_or(0); - let queue_count = final_iteration - .and_then(|iteration| iteration.get("queueCount")) - .and_then(Value::as_u64) - .unwrap_or(0); - let selected_row = final_iteration - .and_then(|iteration| iteration.get("selectedRows")) - .and_then(Value::as_array) - .and_then(|rows| rows.first()) - .or_else(|| { - final_iteration - .and_then(|iteration| iteration.get("queueRows")) - .and_then(Value::as_array) - .and_then(|rows| rows.first()) - }); - let selected_output = final_iteration - .and_then(|iteration| iteration.get("outputs")) - .and_then(Value::as_array) - .and_then(|outputs| outputs.first()); - let refreshed_overview = selected_output.and_then(|output| output.get("refreshedOverview")); - let selected_gate = selected_output - .and_then(|output| non_empty_string(output.get("gateBefore"))) - .or_else(|| { - refreshed_overview.and_then(|overview| non_empty_string(overview.get("currentGate"))) - }) - .or_else(|| selected_row.and_then(|row| non_empty_string(row.get("gate")))) - .unwrap_or_else(|| "none".to_string()); - let selected_blocker = selected_output - .and_then(|output| non_empty_string(output.get("blockerBefore"))) - .or_else(|| { - refreshed_overview.and_then(|overview| non_empty_string(overview.get("blocker"))) - }) - .or_else(|| selected_row.and_then(|row| non_empty_string(row.get("blocker")))) - .unwrap_or_else(|| "none".to_string()); - let selected_next_safe_move = selected_output - .and_then(|output| output.get("tick")) - .and_then(|tick| non_empty_string(tick.get("nextSafeMove"))) - .or_else(|| { - refreshed_overview.and_then(|overview| non_empty_string(overview.get("nextSafeMove"))) - }) - .or_else(|| selected_row.and_then(|row| non_empty_string(row.get("nextSafeMove")))) - .unwrap_or_else(|| next_safe_move.to_string()); - let selected_item = selected_output - .and_then(|output| non_empty_string(output.get("item"))) - .or_else(|| selected_row.and_then(|row| non_empty_string(row.get("item")))) - .unwrap_or_else(|| "none".to_string()); - let selected_branch = refreshed_overview - .and_then(|overview| non_empty_string(overview.get("branch"))) - .or_else(|| selected_row.and_then(|row| non_empty_string(row.get("branch")))) - .unwrap_or_else(|| "none".to_string()); - - let (category, owner, gate, blocker, recommended_command, mutates_state, requires_elevation) = - match stop_reason { - "dry-run-preview-complete" => ( - "dry-run-preview", - "Self", - selected_gate.as_str(), - selected_blocker.as_str(), - "epiphany-swarm run --workspace --until blocked-or-published", - false, - false, - ), - "max-iterations-reached" => ( - "iteration-limit", - "Self", - "self.scheduler-iteration-limit", - "max-iterations-reached", - "epiphany-swarm run --workspace --until blocked-or-published", - false, - false, - ), - "blocked-or-noop" if queue_count == 0 => ( - "queue-empty", - "Self", - "repo.work.overview", - "no-repo-work-rows", - "none", - false, - false, - ), - "blocked-or-noop" if actionable_count == 0 => { - let owner = match selected_gate.as_str() { - "awaiting-publication" => "Bifrost", - "awaiting-sync" | "awaiting-upstream-sync" => "Bifrost/GitHub", - "awaiting-closure" => "Soul", - "ready-to-run" | "ready-to-adopt" | "ready-to-execute" => "Self", - _ => "Self", - }; - let recommended = match selected_gate.as_str() { - "awaiting-publication" => { - "submit a Bifrost publication intent through the owning integration" - } - "awaiting-sync" | "awaiting-upstream-sync" => { - "inspect provider-authored publication and upstream Git ancestry evidence" - } - "awaiting-closure" => { - "epiphany-work close --workspace --execute-receipt " - } - _ => "epiphany-work overview --workspace ", - }; - ( - "authority-gated", - owner, - selected_gate.as_str(), - selected_blocker.as_str(), - recommended, - false, - false, - ) - } - _ => ( - "unknown", - "Self", - selected_gate.as_str(), - selected_blocker.as_str(), - "epiphany-work overview --workspace ", - false, - false, - ), + let launch = CoordinatorLaunch { + turn_id: format!("resident-self-turn-{}", prepared.grant.grant_id), + wake: epiphany_core::ResidentSelfWake::Explicit { + objective: prepared.grant.objective.clone(), + }, + argv: prepared.argv.clone(), }; + let process = ports.launch_coordinator(&launch)?; + let deadline = std::time::Instant::now() + Duration::from_secs(10); + while resident_self_child_claim(&args.state_store, &prepared.preparation_id)?.is_none() { + if std::time::Instant::now() >= deadline { + return Err(anyhow!( + "retried coordinator did not claim prepared authority; preparation remains fail-closed" + )); + } + thread::sleep(Duration::from_millis(50)); + } + acknowledge_resident_self_launch( + &args.state_store, + &prepared.preparation_id, + &process, + now, + )?; + *state = load_resident_self_state(&args.state_store)?; + return Ok(ResidentSelfOutcome::Launched); + } + if let Some(lease) = state.active_turn.clone() { + let brake_engaged = ports.brake_engaged()?; + let timed_out = now.saturating_sub(lease.started_at_millis) + > args.policy.turn_timeout_seconds.saturating_mul(1000); + if brake_engaged || timed_out { + if ports.observe_child(&lease)? == ChildObservation::Running { + ports.request_child_stop(&lease)?; + return Ok(ResidentSelfOutcome::Draining); + } + } + return match ports.observe_child(&lease)? { + ChildObservation::Running => Ok(ResidentSelfOutcome::Running), + ChildObservation::Exited(0) => { + let receipt = coordinator_run_receipts(&args.policy.runtime_store)? + .into_iter() + .find(|receipt| { + receipt.thread_id == lease.turn_id + && receipt.resident_launch_digest.as_deref() + == Some(&lease.launch_digest) + }) + .ok_or_else(|| { + anyhow!( + "coordinator exited zero without its exact resident terminal receipt" + ) + })?; + complete_resident_self_turn(&args.state_store, &lease, &receipt, now)?; + *state = load_resident_self_state(&args.state_store)?; + Ok(ResidentSelfOutcome::Completed) + } + ChildObservation::Exited(code) => { + cancel_resident_self_turn( + &args.state_store, + &lease, + if brake_engaged { + "brake-cancelled" + } else if timed_out { + "timed-out" + } else { + "process-failed" + }, + &format!("coordinator terminal observation exit={code}"), + now, + )?; + *state = load_resident_self_state(&args.state_store)?; + Ok(ResidentSelfOutcome::Failed) + } + ChildObservation::Missing => { + cancel_resident_self_turn( + &args.state_store, + &lease, + if brake_engaged { + "brake-cancelled" + } else if timed_out { + "timed-out" + } else { + "process-failed" + }, + "exact coordinator process is missing", + now, + )?; + *state = load_resident_self_state(&args.state_store)?; + Ok(ResidentSelfOutcome::Failed) + } + }; + } + if ports.brake_engaged()? { + return Ok(ResidentSelfOutcome::Braked); + } + let Some(prepared) = prepare_resident_self_launch(&args.state_store, &args.policy, now)? else { + return Ok(ResidentSelfOutcome::Sleeping); + }; + let launch = CoordinatorLaunch { + turn_id: format!("resident-self-turn-{}", prepared.grant.grant_id), + wake: epiphany_core::ResidentSelfWake::Explicit { + objective: prepared.grant.objective.clone(), + }, + argv: prepared.argv.clone(), + }; + let process = ports.launch_coordinator(&launch)?; + let claim_deadline = std::time::Instant::now() + Duration::from_secs(10); + while resident_self_child_claim(&args.state_store, &prepared.preparation_id)?.is_none() { + if std::time::Instant::now() >= claim_deadline { + return Err(anyhow!( + "coordinator did not claim prepared authority before bootstrap deadline; preparation remains fail-closed" + )); + } + thread::sleep(Duration::from_millis(50)); + } + acknowledge_resident_self_launch(&args.state_store, &prepared.preparation_id, &process, now)?; + *state = load_resident_self_state(&args.state_store)?; + Ok(ResidentSelfOutcome::Launched) +} +fn summary(state: &ResidentSelfState, outcome: &ResidentSelfOutcome) -> serde_json::Value { json!({ - "schemaVersion": "epiphany.repo_swarm_run_stop_classification.v0", - "status": status, - "stopReason": stop_reason, - "category": category, - "owner": owner, - "authorityGate": gate, - "blocker": blocker, - "until": until, - "dryRun": dry_run, - "maxIterations": max_iterations, - "iterationCount": iterations.len(), - "queueRunStatus": queue_status, - "queueCount": queue_count, - "actionableCount": actionable_count, - "selectedItem": selected_item, - "selectedBranch": selected_branch, - "selectedNextSafeMove": selected_next_safe_move, - "recommendedCommand": recommended_command, - "mutatesState": mutates_state, - "requiresElevatedAuthority": requires_elevation, - "publicationAuthorized": false, - "mergeAuthorized": false, - "serviceLifecycleAuthorized": false, - "crossRepoMutationAuthorized": false, + "schemaVersion": "epiphany.resident_self.operator_projection.v0", + "status": format!("{outcome:?}").to_ascii_lowercase(), + "revision": state.revision, + "activeTurnId": state.active_turn.as_ref().map(|turn| &turn.turn_id), + "nextEligibleAtMillis": state.next_eligible_at_millis, + "wakeAuthority": "standard heartbeat consumes typed operator, Body-map drift, Persona feedback, or Imagination proposal pressure and emits one single-consumption Self grant", + "preparedRecovery": if state.prepared_launch.is_some() { "fail-closed-awaiting-exact-child-claim-or-witnessed-recovery" } else { "not-required" }, + "authority": "Self may launch one bounded coordinator turn; it cannot directly invoke model/tools, mutate Mind/Hands, review, release, or deploy", "privateStateExposed": false }) } -fn non_empty_string(value: Option<&Value>) -> Option { - value - .and_then(Value::as_str) - .map(str::trim) - .filter(|value| !value.is_empty()) - .map(ToString::to_string) +#[derive(Clone, Copy)] +enum CommandKind { + Once, + Serve, } -fn queue_run_args( - args: &RunArgs, - workspace: &Path, - epiphany_root: &Path, - local_verse_store: &Path, - runtime_id: &str, -) -> Vec { - let mut queue_args = vec![ - "queue-run".to_string(), - "--workspace".to_string(), - workspace.display().to_string(), - "--epiphany-root".to_string(), - epiphany_root.display().to_string(), - "--local-verse-store".to_string(), - local_verse_store.display().to_string(), - "--runtime-id".to_string(), - runtime_id.to_string(), - "--max-items".to_string(), - args.max_items.to_string(), - "--cooldown-seconds".to_string(), - args.cooldown_seconds.to_string(), - "--active-timeout-seconds".to_string(), - args.active_timeout_seconds.to_string(), - ]; - if args.dry_run { - queue_args.push("--dry-run".to_string()); - } - queue_args +struct Args { + command: CommandKind, + state_store: PathBuf, + policy: ResidentSelfPolicy, + pressure: Option, } -fn ensure_agent_store(agent_store: &Path, template_store: PathBuf) -> Result { - if agent_store.exists() { - return Ok(json!({ - "status": "existing", - "agentStore": agent_store, - "templateStore": Value::Null, - "privateStateExposed": false, - })); - } - if !template_store.exists() { - return Err(anyhow!( - "repo-local agent store is absent and template store {} does not exist", - template_store.display() - )); - } - if let Some(parent) = agent_store.parent() { - fs::create_dir_all(parent)?; - } - fs::copy(&template_store, agent_store).with_context(|| { - format!( - "failed to seed {} from {}", - agent_store.display(), - template_store.display() - ) - })?; - Ok(json!({ - "status": "seeded-from-template", - "agentStore": agent_store, - "templateStore": template_store, - "scaffold": "repo-local standing faculty bootstrap; birth accept-init may refine this store after review", - "privateStateExposed": false, - })) -} - -fn verse_json( - manifest_path: &Path, - command: &str, - store: &Path, - runtime_id: &str, - extra: &[String], -) -> Result { - let mut args = vec![ - command.to_string(), - "--store".to_string(), - store.display().to_string(), - "--runtime-id".to_string(), - runtime_id.to_string(), - ]; - args.extend(extra.iter().cloned()); - cargo_json(manifest_path, "epiphany-verse-query", &args) - .with_context(|| format!("epiphany-verse-query {command} failed")) -} - -fn cargo_json(manifest_path: &Path, bin_name: &str, args: &[String]) -> Result { - let output = Command::new("cargo") - .arg("run") - .arg("--quiet") - .arg("--manifest-path") - .arg(manifest_path) - .arg("--bin") - .arg(bin_name) - .arg("--") - .args(args) - .output() - .with_context(|| format!("failed to spawn cargo run --bin {bin_name}"))?; - if !output.status.success() { - return Err(anyhow!( - "cargo run --bin {bin_name} failed:\n{}", - String::from_utf8_lossy(&output.stderr) - )); - } - serde_json::from_slice(&output.stdout) - .with_context(|| format!("{bin_name} returned invalid JSON")) -} - -fn compact_fields(value: &Value, fields: &[&str]) -> Value { - let mut out = serde_json::Map::new(); - for field in fields { - out.insert( - (*field).to_string(), - value.get(*field).cloned().unwrap_or(Value::Null), - ); - } - Value::Object(out) -} - -fn summarize_tool_directory(value: &Value) -> Value { - let tools = value - .get("tools") - .and_then(Value::as_array) - .cloned() - .unwrap_or_default(); - let all_agents_tool_count = tools - .iter() - .filter(|tool| { - tool.get("availableToAllAgents") - .and_then(Value::as_bool) - .unwrap_or(false) - }) - .count(); - let private_state_exposed = tools.iter().any(|tool| { - tool.get("privateStateExposed") - .and_then(Value::as_bool) - .unwrap_or(true) - }); - json!({ - "status": value.get("status").cloned().unwrap_or(Value::Null), - "toolCount": value.get("toolCount").cloned().unwrap_or_else(|| json!(tools.len())), - "allAgentsToolCount": all_agents_tool_count, - "privateStateExposed": private_state_exposed, - }) -} - -fn path_from_json(value: &Value, path: &[&str]) -> Option { - let mut cursor = value; - for segment in path { - cursor = cursor.get(*segment)?; - } - cursor.as_str().map(PathBuf::from) -} - -fn string_from_json(value: &Value, path: &[&str]) -> Option { - let mut cursor = value; - for segment in path { - cursor = cursor.get(*segment)?; - } - cursor.as_str().map(ToString::to_string) -} - -fn read_json(path: &Path) -> Result { - let raw = - fs::read_to_string(path).with_context(|| format!("failed to read {}", path.display()))?; - serde_json::from_str(&raw).with_context(|| format!("failed to decode {}", path.display())) -} - -fn write_json(path: &Path, value: &Value) -> Result<()> { - if let Some(parent) = path.parent() { - fs::create_dir_all(parent)?; - } - fs::write(path, serde_json::to_vec_pretty(value)?) - .with_context(|| format!("failed to write {}", path.display())) -} - -fn ensure_git_repo(workspace: &Path) -> Result<()> { - let output = Command::new("git") - .arg("-C") - .arg(workspace) - .arg("rev-parse") - .arg("--show-toplevel") - .output() - .with_context(|| format!("failed to run git in {}", workspace.display()))?; - if output.status.success() { - Ok(()) - } else { - Err(anyhow!("{} is not a git repository", workspace.display())) - } -} - -fn take_path(args: &mut impl Iterator, name: &str) -> Result { - Ok(PathBuf::from(take_string(args, name)?)) -} - -fn take_string(args: &mut impl Iterator, name: &str) -> Result { - args.next() - .ok_or_else(|| anyhow!("missing value for {name}")) -} - -fn take_u64(args: &mut impl Iterator, name: &str) -> Result { - let raw = take_string(args, name)?; - raw.parse::() - .with_context(|| format!("invalid integer for {name}: {raw:?}")) -} - -fn sanitize(value: &str) -> String { - let sanitized = value - .chars() - .map(|ch| { - if ch.is_ascii_alphanumeric() { - ch.to_ascii_lowercase() - } else { - '-' +impl Args { + fn parse() -> Result { + let mut it = env::args().skip(1); + let command = match it.next().as_deref() { + Some("once") => CommandKind::Once, + Some("serve") => CommandKind::Serve, + _ => { + return Err(anyhow!( + "usage: epiphany-swarm with exact absolute packaged paths" + )); } + }; + let mut value = BTreeMap::new(); + let mut objective = None; + while let Some(flag) = it.next() { + let raw = it + .next() + .ok_or_else(|| anyhow!("missing value for {flag}"))?; + if flag == "--objective" { + objective = Some(raw); + } else { + value.insert(flag, raw); + } + } + let path = |name: &str| -> Result { + Ok(PathBuf::from( + value.get(name).ok_or_else(|| anyhow!("missing {name}"))?, + )) + }; + let u64v = |name: &str, default: u64| -> Result { + value.get(name).map_or(Ok(default), |v| { + v.parse().with_context(|| format!("invalid {name}")) + }) + }; + let release_store = path("--release-store")?; + let policy = ResidentSelfPolicy { + workspace: path("--workspace")?, + coordinator_bin: release_store.clone(), + model_runtime_bin: release_store.clone(), + tool_adapter_bin: release_store.clone(), + runtime_store: path("--runtime-store")?, + local_verse_store: path("--local-verse-store")?, + agent_memory_store: path("--agent-memory-store")?, + artifact_root: path("--artifact-root")?, + codex_home: path("--codex-home")?, + model_provider: value + .get("--model-provider") + .cloned() + .unwrap_or_else(|| "local".into()), + max_steps: u64v("--max-steps", 4)?, + turn_timeout_seconds: u64v("--turn-timeout-seconds", 600)?, + cooldown_seconds: u64v("--cooldown-seconds", 60)?, + idle_sleep_seconds: u64v("--idle-sleep-seconds", 15)?, + failure_backoff_seconds: u64v("--failure-backoff-seconds", 60)?, + release_commit: String::new(), + release_manifest_digest: String::new(), + release_store, + release_runtime_id: value + .get("--release-runtime-id") + .cloned() + .ok_or_else(|| anyhow!("missing --release-runtime-id"))?, + release_id: value + .get("--release-id") + .cloned() + .ok_or_else(|| anyhow!("missing --release-id"))?, + release_witness_sha256: value + .get("--release-witness-sha256") + .cloned() + .ok_or_else(|| anyhow!("missing --release-witness-sha256"))?, + }; + let pressure = objective.map(|objective| ResidentSelfPressure { + schema_version: epiphany_core::RESIDENT_SELF_PRESSURE_SCHEMA_VERSION.into(), + pressure_id: value + .get("--pressure-id") + .cloned() + .unwrap_or_else(|| format!("operator-pressure-{}", Utc::now().timestamp_millis())), + kind: "operator-objective".into(), + provenance_ref: "cli://epiphany-swarm/operator-objective".into(), + objective, + created_at_millis: Utc::now().timestamp_millis().max(0) as u64, + status: "pending".into(), + consumed_by_grant_id: None, + private_state_exposed: false, + }); + Ok(Self { + command, + state_store: path("--state-store")?, + policy, + pressure, }) - .collect::() - .split('-') - .filter(|part| !part.is_empty()) - .collect::>() - .join("-"); - if sanitized.is_empty() { - "workspace".to_string() - } else { - sanitized } } -fn print_usage() { - eprintln!( - "usage: epiphany-swarm ...\n\ - online --workspace [--epiphany-root ] [--store ] [--state-dir ] [--artifact-dir ] [--runtime-id ] [--init-receipt ] [--agent-template-store ]\n\ - run --workspace [--epiphany-root ] [--store ] [--runtime-id ] [--until blocked-or-published] [--max-iterations ] [--max-items ] [--dry-run]" - ); +struct NativePorts<'a> { + policy: &'a ResidentSelfPolicy, + children: BTreeMap, } -#[cfg(test)] -mod classification_tests { - use super::*; - - #[test] - fn stop_classification_reads_typed_rows_not_tui_prose() { - let typed = vec![json!({ - "queueRunStatus": "would-advance", - "actionableCount": 1, - "queueCount": 1, - "selectedRows": [{ - "item": "item-1", - "branch": "main", - "gate": "ready-to-run", - "blocker": "none", - "nextSafeMove": "run it" - }], - "outputs": [] - })]; - let typed_result = classify_run_stop( - "dry-run-preview-complete", - "preview", - "blocked-or-published", - true, - 1, - &typed, - "fallback", - ); - assert_eq!(typed_result["authorityGate"], "ready-to-run"); - assert_eq!(typed_result["selectedItem"], "item-1"); - - let prose = vec![json!({ - "queueRunStatus": "would-advance", - "actionableCount": 1, - "queueCount": 1, - "selectedRows": ["QUEUE-RUN | item=counterfeit | gate=published | blocker=none"], - "outputs": [] - })]; - let prose_result = classify_run_stop( - "dry-run-preview-complete", - "preview", - "blocked-or-published", - true, - 1, - &prose, - "fallback", - ); - assert_eq!(prose_result["authorityGate"], "none"); - assert_eq!(prose_result["selectedItem"], "none"); +impl<'a> NativePorts<'a> { + fn new(policy: &'a ResidentSelfPolicy) -> Self { + Self { + policy, + children: BTreeMap::new(), + } + } +} + +impl ResidentSelfPorts for NativePorts<'_> { + fn brake_engaged(&mut self) -> Result { + Ok(load_epiphany_cultmesh_swarm_brake( + &self.policy.local_verse_store, + "epiphany-resident-self", + )? + .is_some_and(|brake| brake.status == "engaged")) + } + + fn observe_child( + &mut self, + lease: &epiphany_core::ResidentSelfTurnLease, + ) -> Result { + if let Some(child) = self.children.get_mut(&lease.process_id) { + return Ok(match child.try_wait()? { + Some(status) => ChildObservation::Exited(status.code().unwrap_or(-1)), + None => ChildObservation::Running, + }); + } + let expected = ProcessInstanceIdentity { + process_id: lease.process_id, + creation_token: lease.process_creation_token, + created_at_rfc3339: None, + executable_path: lease.process_executable_path.clone(), + }; + Ok(match observe_process_instance(&expected) { + ProcessInstanceObservation::ExactAlive => ChildObservation::Running, + ProcessInstanceObservation::ExactExited { exit_code } => { + ChildObservation::Exited(exit_code.map(|v| v as i32).unwrap_or(-1)) + } + ProcessInstanceObservation::Missing | ProcessInstanceObservation::Replaced { .. } => { + ChildObservation::Missing + } + // Uncertainty cannot prove the exact incarnation dead, so it cannot admit a replacement. + ProcessInstanceObservation::Inaccessible + | ProcessInstanceObservation::Indeterminate { .. } => ChildObservation::Running, + }) + } + + fn request_child_stop(&mut self, lease: &epiphany_core::ResidentSelfTurnLease) -> Result<()> { + if let Some(child) = self.children.get_mut(&lease.process_id) { + return child.kill().with_context(|| { + format!( + "failed to stop exact coordinator process {}", + lease.process_id + ) + }); + } + terminate_process_instance(&ProcessInstanceIdentity { + process_id: lease.process_id, + creation_token: lease.process_creation_token, + created_at_rfc3339: None, + executable_path: lease.process_executable_path.clone(), + }) + } + + fn launch_coordinator(&mut self, launch: &CoordinatorLaunch) -> Result { + let mut command = Command::new(&self.policy.coordinator_bin); + command + .args(&launch.argv) + .current_dir(&self.policy.workspace); + let child = command.spawn().with_context(|| { + format!("failed to launch {}", self.policy.coordinator_bin.display()) + })?; + let process_id = child.id(); + let identity = capture_process_instance(process_id)?; + self.children.insert(process_id, child); + Ok(LaunchedCoordinator { + process_id, + process_creation_token: identity.creation_token, + process_executable_path: identity.executable_path, + }) + } + + fn coordinator_receipt_since( + &mut self, + turn_id: &str, + started_at_millis: u64, + ) -> Result> { + let mut receipts = coordinator_run_receipts(&self.policy.runtime_store)?; + receipts.retain(|receipt| { + receipt.thread_id == turn_id + && chrono::DateTime::parse_from_rfc3339(&receipt.created_at) + .map(|at| at.timestamp_millis().max(0) as u64 >= started_at_millis) + .unwrap_or(false) + }); + receipts.sort_by(|a, b| { + a.created_at + .cmp(&b.created_at) + .then(a.receipt_id.cmp(&b.receipt_id)) + }); + Ok(receipts.last().map(|receipt| receipt.receipt_id.clone())) } } diff --git a/epiphany-core/src/heartbeat_state.rs b/epiphany-core/src/heartbeat_state.rs index 07c41ccd..172d712f 100644 --- a/epiphany-core/src/heartbeat_state.rs +++ b/epiphany-core/src/heartbeat_state.rs @@ -37,9 +37,11 @@ use heartbeat_roles::display_name_for_role; pub use heartbeat_roles::ghostlight_scene_heartbeat_state; pub use heartbeat_roles::initialize_ghostlight_scene_heartbeat_store; pub use heartbeat_roles::initialize_heartbeat_store; +pub use heartbeat_store::commit_heartbeat_state_transaction; pub use heartbeat_store::heartbeat_state_cache; pub use heartbeat_store::load_heartbeat_cognition_entry; pub use heartbeat_store::load_heartbeat_state_entry; +pub use heartbeat_store::load_heartbeat_state_transaction; pub use heartbeat_store::load_latest_heartbeat_stale_turn_repair_receipt; pub use heartbeat_store::validate_heartbeat_cognition; pub use heartbeat_store::validate_heartbeat_state; @@ -178,8 +180,14 @@ pub fn tick_heartbeat_store( options: HeartbeatTickOptions, ) -> Result { let store_path = store_path.as_ref(); - let mut state = load_heartbeat_state_entry(store_path)? - .unwrap_or_else(|| default_heartbeat_state(options.target_heartbeat_rate)); + if options.resident_self_store.as_deref() == Some(store_path) { + return Err(anyhow!( + "heartbeat and resident Self require physically separate CultCache stores" + )); + } + let (loaded_state, expected_state) = load_heartbeat_state_transaction(store_path)?; + let mut state = + loaded_state.unwrap_or_else(|| default_heartbeat_state(options.target_heartbeat_rate)); if options.target_heartbeat_rate > 0.0 { state.target_heartbeat_rate = options.target_heartbeat_rate; } @@ -194,8 +202,74 @@ pub fn tick_heartbeat_store( apply_mood_timing_from_appraisals(&mut state, &appraisals); } apply_initiative_heat_policy(&mut state); - let result = tick_once(&mut state, &options)?; - write_heartbeat_state_entry(store_path, &state)?; + if let Some(resident_store) = options.resident_self_store.as_deref() + && crate::pending_resident_self_pressure(resident_store)? + && let Some(pending) = state + .participants + .iter() + .find(|participant| participant.role_id == "coordinator") + .and_then(|participant| participant.pending_turn.as_ref()) + { + crate::heartbeat_issue_resident_self_grant( + resident_store, + &pending.schedule_id, + &pending.action_id, + Utc::now().timestamp_millis().max(0) as u64, + )?; + } + let mut resident_ack_to_consume = None; + if let Some(resident_store) = options.resident_self_store.as_deref() + && let Some(pending) = state + .participants + .iter() + .find(|participant| participant.role_id == "coordinator") + .and_then(|participant| participant.pending_turn.as_ref()) + && let Some(ack) = crate::pending_resident_self_ack_for( + resident_store, + &pending.schedule_id, + &pending.action_id, + )? + { + let index = participant_index_by_role(&state, "coordinator")?; + complete_pending_turn(&mut state, index)?; + resident_ack_to_consume = Some((resident_store.to_path_buf(), ack.ack_id)); + } + let mut effective_options = options.clone(); + if let Some(resident_store) = options.resident_self_store.as_deref() + && crate::pending_resident_self_pressure(resident_store)? + { + effective_options.coordinator_action = Some("resident-self-pressure".to_string()); + effective_options.target_role = Some("coordinator".to_string()); + effective_options.defer_completion = true; + } + let result = tick_once(&mut state, &effective_options)?; + commit_heartbeat_state_transaction(store_path, expected_state, &state)?; + if result["event"]["selectedRole"] == "coordinator" + && effective_options.defer_completion + && let Some(resident_store) = effective_options.resident_self_store.as_deref() + { + let schedule_id = result["event"]["schedule_id"] + .as_str() + .or_else(|| result["event"]["scheduleId"].as_str()) + .unwrap_or(&effective_options.schedule_id); + let action_id = result["event"]["action_id"] + .as_str() + .or_else(|| result["event"]["actionId"].as_str()) + .unwrap_or_default(); + crate::heartbeat_issue_resident_self_grant( + resident_store, + schedule_id, + action_id, + Utc::now().timestamp_millis().max(0) as u64, + )?; + } + if let Some((resident_store, ack_id)) = resident_ack_to_consume { + crate::heartbeat_consume_resident_self_ack( + &resident_store, + &ack_id, + Utc::now().timestamp_millis().max(0) as u64, + )?; + } let artifact_dir = artifact_dir.as_ref(); fs::create_dir_all(artifact_dir) @@ -226,6 +300,51 @@ pub fn pump_heartbeat_store( options: HeartbeatPumpOptions, ) -> Result { let store_path = store_path.as_ref(); + if let Some(resident_store) = options.resident_self_store.as_deref() { + let heartbeat = load_heartbeat_state_entry(store_path)?; + let pending_ack = if let Some(pending) = heartbeat + .as_ref() + .and_then(|state| { + state + .participants + .iter() + .find(|p| p.role_id == "coordinator") + }) + .and_then(|p| p.pending_turn.as_ref()) + { + crate::pending_resident_self_ack_for( + resident_store, + &pending.schedule_id, + &pending.action_id, + )? + .is_some() + } else { + false + }; + if crate::pending_resident_self_pressure(resident_store)? || pending_ack { + let tick = tick_heartbeat_store( + store_path, + artifact_dir.as_ref(), + HeartbeatTickOptions { + target_heartbeat_rate: options.base_heartbeat_rate.max(0.001), + coordinator_action: None, + target_role: None, + urgency: options.external_urgency, + schedule_id: format!("{}.resident-self", options.schedule_id), + source_scene_ref: options.source_scene_ref.clone(), + defer_completion: true, + agent_store: options.agent_store.clone(), + resident_self_store: Some(resident_store.to_path_buf()), + }, + )?; + return Ok(serde_json::json!({ + "schema_version": "epiphany.adaptive_heartbeat_pump.v0", "storeFile": store_path, + "artifactDir": artifact_dir.as_ref(), "sourceSceneRef": options.source_scene_ref, + "scheduleId": options.schedule_id, "launched": 1, "ticks": [tick], + "residentSelfDelegatedToTransactionalTick": true, "errors": [] + })); + } + } let mut state = load_heartbeat_state_entry(store_path)? .unwrap_or_else(|| default_heartbeat_state(options.base_heartbeat_rate.max(0.001))); if options.base_heartbeat_rate > 0.0 { @@ -283,6 +402,7 @@ pub fn pump_heartbeat_store( source_scene_ref: options.source_scene_ref.clone(), defer_completion: true, agent_store: options.agent_store.clone(), + resident_self_store: options.resident_self_store.clone(), }; match tick_once(&mut state, &tick_options) { Ok(result) => { @@ -3548,6 +3668,7 @@ mod tests { source_scene_ref: "test/native".to_string(), defer_completion: true, agent_store: None, + resident_self_store: None, }, )?; assert_eq!(work["event"]["selectedRole"], "implementation"); @@ -3579,6 +3700,7 @@ mod tests { source_scene_ref: "test/native".to_string(), defer_completion: false, agent_store: None, + resident_self_store: None, }, ) .unwrap_err(); @@ -3637,6 +3759,7 @@ mod tests { source_scene_ref: "test/high-heat".to_string(), defer_completion: true, agent_store: None, + resident_self_store: None, }, )?; assert_eq!( @@ -3669,6 +3792,7 @@ mod tests { source_scene_ref: "test/high-heat".to_string(), defer_completion: true, agent_store: None, + resident_self_store: None, }, ) .unwrap_err(); @@ -3698,6 +3822,7 @@ mod tests { source_scene_ref: "test/stale".to_string(), defer_completion: true, agent_store: None, + resident_self_store: None, }, )?; let mut state = load_heartbeat_state_entry(&store_path)?.expect("heartbeat state"); @@ -3752,6 +3877,7 @@ mod tests { source_scene_ref: "test/stale".to_string(), defer_completion: true, agent_store: None, + resident_self_store: None, }, )?; assert_eq!(next["event"]["selectedRole"], "implementation"); @@ -3800,6 +3926,7 @@ mod tests { source_scene_ref: "ghostlight/pallas-training-loop-v0".to_string(), defer_completion: true, agent_store: None, + resident_self_store: None, }, )?; @@ -3850,6 +3977,7 @@ mod tests { source_scene_ref: "test/Persona-mentioned".to_string(), defer_completion: true, agent_store: None, + resident_self_store: None, }, )?; @@ -3908,6 +4036,7 @@ mod tests { source_scene_ref: "test/Persona-mentioned-memory".to_string(), defer_completion: true, agent_store: Some(agent_store), + resident_self_store: None, }, )?; diff --git a/epiphany-core/src/heartbeat_state/heartbeat_documents.rs b/epiphany-core/src/heartbeat_state/heartbeat_documents.rs index a8751a82..414e42a3 100644 --- a/epiphany-core/src/heartbeat_state/heartbeat_documents.rs +++ b/epiphany-core/src/heartbeat_state/heartbeat_documents.rs @@ -862,6 +862,7 @@ pub struct HeartbeatTickOptions { pub source_scene_ref: String, pub defer_completion: bool, pub agent_store: Option, + pub resident_self_store: Option, } #[derive(Clone, Debug, PartialEq)] @@ -878,6 +879,7 @@ pub struct HeartbeatPumpOptions { pub schedule_id: String, pub source_scene_ref: String, pub agent_store: Option, + pub resident_self_store: Option, } #[derive(Clone, Debug, PartialEq)] diff --git a/epiphany-core/src/heartbeat_state/heartbeat_store.rs b/epiphany-core/src/heartbeat_state/heartbeat_store.rs index 8a24a11d..e9f81ae4 100644 --- a/epiphany-core/src/heartbeat_state/heartbeat_store.rs +++ b/epiphany-core/src/heartbeat_state/heartbeat_store.rs @@ -17,8 +17,8 @@ use super::participant_arena; use super::participant_kind; use anyhow::Result; use anyhow::anyhow; -use cultcache_rs::CultCache; use cultcache_rs::SingleFileMessagePackBackingStore; +use cultcache_rs::{CultCache, CultCacheEnvelope, DatabaseEntry}; use serde_json::Value; use std::path::Path; @@ -58,6 +58,44 @@ pub fn write_heartbeat_state_entry( cache.put(HEARTBEAT_STATE_KEY, state) } +pub fn load_heartbeat_state_transaction( + store_path: impl AsRef, +) -> Result<( + Option, + Option, +)> { + let cache = heartbeat_state_cache(store_path)?; + let envelope = cache.snapshot_envelopes().into_iter().find(|entry| { + entry.r#type == ::TYPE + && entry.key == HEARTBEAT_STATE_KEY + }); + Ok(( + cache.get::(HEARTBEAT_STATE_KEY)?, + envelope, + )) +} + +pub fn commit_heartbeat_state_transaction( + store_path: impl AsRef, + expected: Option, + state: &EpiphanyHeartbeatStateEntry, +) -> Result<()> { + validate_heartbeat_state(state)?; + let cache = heartbeat_state_cache(store_path.as_ref())?; + let (replacement, _) = cache.prepare_entry(HEARTBEAT_STATE_KEY, state)?; + let backing = SingleFileMessagePackBackingStore::new(store_path.as_ref()); + let committed = match expected { + Some(expected) => backing.compare_and_swap_entry(&expected, replacement)?, + None => backing.insert_entry_if_absent(replacement)?, + }; + if !committed { + return Err(anyhow!( + "heartbeat state lost exact atomic compare-and-swap" + )); + } + Ok(()) +} + pub fn load_heartbeat_cognition_entry( store_path: impl AsRef, ) -> Result> { diff --git a/epiphany-core/src/lib.rs b/epiphany-core/src/lib.rs index ab4eac07..072a2332 100644 --- a/epiphany-core/src/lib.rs +++ b/epiphany-core/src/lib.rs @@ -30,6 +30,7 @@ mod proposal; mod repo_model_gateway; mod repository_body_observer; mod repository_readiness; +mod resident_self; mod runtime_spine; mod semantic_backend; mod semantic_projector_service; @@ -852,6 +853,7 @@ pub use process_observation::native_boot_identity; pub use process_observation::native_process_executable_path; pub use process_observation::observe_native_process; pub use process_observation::observe_process_instance; +pub use process_observation::terminate_process_instance; pub use promotion::EpiphanyPromotionDecision; pub use promotion::EpiphanyPromotionInput; pub use promotion::EpiphanyStateReplacementValidationInput; @@ -865,6 +867,7 @@ pub use proposal::propose_map_update; pub use repo_model_gateway::*; pub use repository_body_observer::*; pub use repository_readiness::*; +pub use resident_self::*; pub use runtime_spine::COORDINATOR_RUN_RECEIPT_SCHEMA_VERSION; pub use runtime_spine::COORDINATOR_RUN_RECEIPT_TYPE; pub use runtime_spine::EpiphanyCoordinatorRunReceipt; @@ -923,6 +926,7 @@ pub use runtime_spine::commit_repo_model_admission; pub use runtime_spine::commit_repo_model_claim_challenge; pub use runtime_spine::commit_repo_model_claim_repair_request; pub use runtime_spine::complete_runtime_job; +pub use runtime_spine::coordinator_run_receipts; pub use runtime_spine::create_runtime_job; pub use runtime_spine::create_runtime_session; pub use runtime_spine::ensure_runtime_repo_model; diff --git a/epiphany-core/src/packaged_release.rs b/epiphany-core/src/packaged_release.rs index f0bc9636..e00c4478 100644 --- a/epiphany-core/src/packaged_release.rs +++ b/epiphany-core/src/packaged_release.rs @@ -3,7 +3,7 @@ use anyhow::{Context, Result, anyhow, bail}; use chrono::{DateTime, Utc}; use cultcache_rs::{DatabaseEntry, SingleFileMessagePackBackingStore}; use sha2::{Digest, Sha256}; -use std::collections::BTreeSet; +use std::collections::{BTreeMap, BTreeSet}; use std::fs; use std::path::{Path, PathBuf}; use uuid::Uuid; @@ -76,104 +76,85 @@ pub struct PackageReleaseRequest<'a> { pub store: &'a Path, pub runtime_id: &'a str, pub target_triple: &'a str, - pub toolchain_fingerprint: &'a str, } -pub fn required_packaged_release_binaries() -> Vec<(&'static str, &'static str)> { +pub fn required_packaged_release_binaries(target_triple: &str) -> Vec<(&'static str, String)> { + let file_name = |name: &str| target_binary_file_name(target_triple, name); vec![ - ( - "supervisor", - if cfg!(windows) { - "epiphany-daemon-supervisor.exe" - } else { - "epiphany-daemon-supervisor" - }, - ), + ("supervisor", file_name("epiphany-daemon-supervisor")), ( "semantic-projector", - if cfg!(windows) { - "epiphany-memory-semantic-projector.exe" - } else { - "epiphany-memory-semantic-projector" - }, + file_name("epiphany-memory-semantic-projector"), ), ( "workspace-coverage-projector", - if cfg!(windows) { - "epiphany-workspace-coverage-projector.exe" - } else { - "epiphany-workspace-coverage-projector" - }, + file_name("epiphany-workspace-coverage-projector"), ), + ("semantic-query", file_name("epiphany-memory-semantic")), + ("verse-query", file_name("epiphany-verse-query")), + ("repository-body", file_name("epiphany-repository-body")), + ("host-identity", file_name("epiphany-host-identity")), + ("swarm", file_name("epiphany-swarm")), + ("coordinator", file_name("epiphany-mvp-coordinator")), + ("model-runtime", file_name("epiphany-model-runtime")), ( - "semantic-query", - if cfg!(windows) { - "epiphany-memory-semantic.exe" - } else { - "epiphany-memory-semantic" - }, - ), - ( - "verse-query", - if cfg!(windows) { - "epiphany-verse-query.exe" - } else { - "epiphany-verse-query" - }, - ), - ( - "repository-body", - if cfg!(windows) { - "epiphany-repository-body.exe" - } else { - "epiphany-repository-body" - }, - ), - ( - "host-identity", - if cfg!(windows) { - "epiphany-host-identity.exe" - } else { - "epiphany-host-identity" - }, + "tool-codex-mcp-spine", + file_name("epiphany-tool-codex-mcp-spine"), ), ] } +fn target_binary_file_name(target_triple: &str, binary: &str) -> String { + if target_triple + .split('-') + .any(|component| component == "windows") + { + format!("{binary}.exe") + } else { + binary.to_string() + } +} + pub fn package_and_publish_epiphany_release( request: PackageReleaseRequest<'_>, ) -> Result { let (source_commit_sha, source_commit_time) = clean_source_commit(request.repo)?; require_nonempty("runtime id", request.runtime_id)?; require_nonempty("target triple", request.target_triple)?; - require_nonempty("toolchain fingerprint", request.toolchain_fingerprint)?; + let toolchain = installed_toolchain()?; fs::create_dir_all(request.destination)?; let destination = canonical_path(request.destination)?; let source_root = short_temporary_path("ep-src"); let source_guard = GitWorktreeGuard::create(request.repo, &source_root, &source_commit_sha)?; let build_root = short_temporary_path("ep-build"); let _build_guard = DirectoryCleanup(build_root.clone()); - build_required_release_siblings(&source_guard.path, &build_root, request.target_triple)?; - let built_dir = build_root.join(request.target_triple).join("release"); + let built_binaries = build_required_release_siblings( + &source_guard.path, + &build_root, + request.target_triple, + &toolchain.cargo, + )?; let staging = destination.join(format!(".staging-{}", Uuid::new_v4())); fs::create_dir(&staging)?; let result = (|| { let mut binaries = Vec::new(); - for (role, file_name) in required_packaged_release_binaries() { - let source = built_dir.join(file_name); + for (role, file_name) in required_packaged_release_binaries(request.target_triple) { + let source = built_binaries + .get(role) + .with_context(|| format!("required packaged sibling was not built: {role}"))?; if !source.is_file() { bail!("required packaged sibling is absent: {}", source.display()); } - let target = staging.join(file_name); + let target = staging.join(&file_name); fs::copy(&source, &target)?; - binaries.push(binary_record(role, file_name, &target)?); + binaries.push(binary_record(role, &file_name, &target)?); } binaries.sort_by(|left, right| left.role.cmp(&right.role)); let release_id = release_id( request.runtime_id, &source_commit_sha, request.target_triple, - request.toolchain_fingerprint, + &toolchain.fingerprint, &binaries, ); let final_root = destination.join(&source_commit_sha).join(&release_id); @@ -188,7 +169,7 @@ pub fn package_and_publish_epiphany_release( source_commit_sha, target_triple: request.target_triple.into(), cargo_profile: "release".into(), - toolchain_fingerprint: request.toolchain_fingerprint.into(), + toolchain_fingerprint: toolchain.fingerprint, created_at_utc: source_commit_time, package_root: final_root.display().to_string(), binaries, @@ -291,47 +272,79 @@ impl Drop for GitWorktreeGuard { } } -fn build_required_release_siblings(repo: &Path, target_dir: &Path, target: &str) -> Result<()> { - let manifest = repo.join("epiphany-core").join("Cargo.toml"); - if !manifest.is_file() { - bail!( - "Epiphany release manifest is absent: {}", - manifest.display() - ); +fn build_required_release_siblings( + repo: &Path, + target_root: &Path, + target: &str, + cargo: &std::ffi::OsStr, +) -> Result> { + let mut manifests = BTreeSet::new(); + for (role, _) in required_packaged_release_binaries(target) { + manifests.insert(required_release_build_target(role)?.0); } - let mut command = std::process::Command::new("cargo"); - command - .arg("build") - .arg("--release") - .arg("--manifest-path") - .arg(&manifest) - .arg("--target-dir") - .arg(target_dir) - .arg("--target") - .arg(target); - command.arg("--locked"); - for (role, _) in required_packaged_release_binaries() { - let binary = required_release_binary(role)?; - command.arg("--bin").arg(binary); + let mut outputs = BTreeMap::new(); + for manifest_dir in manifests { + let manifest = repo.join(manifest_dir).join("Cargo.toml"); + if !manifest.is_file() { + bail!( + "Epiphany release manifest is absent: {}", + manifest.display() + ); + } + let target_dir = release_manifest_target_dir(target_root, manifest_dir); + let mut command = std::process::Command::new(cargo); + command + .arg("build") + .arg("--release") + .arg("--manifest-path") + .arg(&manifest) + .arg("--target-dir") + .arg(&target_dir) + .arg("--target") + .arg(target) + .arg("--locked"); + for (role, file_name) in required_packaged_release_binaries(target) { + let (owner, binary) = required_release_build_target(role)?; + if owner == manifest_dir { + command.arg("--bin").arg(binary); + outputs.insert( + role, + target_dir.join(target).join("release").join(file_name), + ); + } + } + let status = command + .status() + .with_context(|| format!("failed to start {manifest_dir} release build"))?; + if !status.success() { + bail!("owned Epiphany release build failed for {manifest_dir}"); + } } - let status = command - .status() - .context("failed to start owned release build")?; - if !status.success() { - bail!("owned Epiphany release build failed"); - } - Ok(()) + Ok(outputs) } -fn required_release_binary(role: &str) -> Result<&'static str> { +fn release_manifest_target_dir(target_root: &Path, manifest_dir: &str) -> PathBuf { + target_root.join(manifest_dir) +} + +fn required_release_build_target(role: &str) -> Result<(&'static str, &'static str)> { match role { - "supervisor" => Ok("epiphany-daemon-supervisor"), - "semantic-projector" => Ok("epiphany-memory-semantic-projector"), - "workspace-coverage-projector" => Ok("epiphany-workspace-coverage-projector"), - "semantic-query" => Ok("epiphany-memory-semantic"), - "verse-query" => Ok("epiphany-verse-query"), - "repository-body" => Ok("epiphany-repository-body"), - "host-identity" => Ok("epiphany-host-identity"), + "supervisor" => Ok(("epiphany-core", "epiphany-daemon-supervisor")), + "semantic-projector" => Ok(("epiphany-core", "epiphany-memory-semantic-projector")), + "workspace-coverage-projector" => { + Ok(("epiphany-core", "epiphany-workspace-coverage-projector")) + } + "semantic-query" => Ok(("epiphany-core", "epiphany-memory-semantic")), + "verse-query" => Ok(("epiphany-core", "epiphany-verse-query")), + "repository-body" => Ok(("epiphany-core", "epiphany-repository-body")), + "host-identity" => Ok(("epiphany-core", "epiphany-host-identity")), + "swarm" => Ok(("epiphany-core", "epiphany-swarm")), + "coordinator" => Ok(("epiphany-core", "epiphany-mvp-coordinator")), + "model-runtime" => Ok(("epiphany-openai-runtime", "epiphany-model-runtime")), + "tool-codex-mcp-spine" => Ok(( + "epiphany-tool-codex-mcp-spine", + "epiphany-tool-codex-mcp-spine", + )), _ => bail!("unknown required release role {role}"), } } @@ -355,7 +368,7 @@ pub fn validate_epiphany_packaged_release(entry: &EpiphanyPackagedReleaseEntry) if !root.is_absolute() { bail!("packaged release root must be absolute"); } - let required = required_packaged_release_binaries(); + let required = required_packaged_release_binaries(&entry.target_triple); if entry.binaries.len() != required.len() { bail!("packaged release sibling set is incomplete"); } @@ -556,6 +569,39 @@ fn git(repo: &Path, args: &[&str]) -> Result { Ok(String::from_utf8(output.stdout)?.trim().to_string()) } +struct InstalledToolchain { + cargo: std::ffi::OsString, + fingerprint: String, +} + +fn installed_toolchain() -> Result { + let cargo = std::env::var_os("CARGO").unwrap_or_else(|| "cargo".into()); + let rustc = std::env::var_os("RUSTC").unwrap_or_else(|| "rustc".into()); + let cargo_version = command_version(&cargo, "cargo")?; + let rustc_version = command_version(&rustc, "rustc")?; + Ok(InstalledToolchain { + cargo: cargo.clone(), + fingerprint: format!( + "cargo-command={}\ncargo-vV:\n{}\nrustc-command={}\nrustc-vV:\n{}", + Path::new(&cargo).display(), + cargo_version, + Path::new(&rustc).display(), + rustc_version + ), + }) +} + +fn command_version(command: &std::ffi::OsStr, label: &str) -> Result { + let output = std::process::Command::new(command).arg("-vV").output()?; + if !output.status.success() { + bail!( + "{label} -vV failed: {}", + String::from_utf8_lossy(&output.stderr) + ); + } + Ok(String::from_utf8(output.stdout)?.trim().to_string()) +} + fn binary_record( role: &str, file_name: &str, @@ -662,20 +708,78 @@ mod tests { #[test] fn every_required_release_role_has_a_build_target() { - for (role, _) in required_packaged_release_binaries() { - required_release_binary(role).expect("required release role must resolve"); + for (role, _) in required_packaged_release_binaries("x86_64-unknown-linux-gnu") { + required_release_build_target(role).expect("required release role must resolve"); } } + #[test] + fn binary_suffix_follows_requested_target_not_packager_host() { + let windows = required_packaged_release_binaries("x86_64-pc-windows-msvc"); + assert!(windows.iter().all(|(_, name)| name.ends_with(".exe"))); + let linux = required_packaged_release_binaries("x86_64-unknown-linux-gnu"); + assert!(linux.iter().all(|(_, name)| !name.ends_with(".exe"))); + } + + #[test] + fn owning_manifests_have_isolated_build_roots() { + let root = Path::new("isolated-release-build"); + let core = release_manifest_target_dir(root, "epiphany-core"); + let model = release_manifest_target_dir(root, "epiphany-openai-runtime"); + let tools = release_manifest_target_dir(root, "epiphany-tool-codex-mcp-spine"); + assert_ne!(core, model); + assert_ne!(core, tools); + assert_ne!(model, tools); + assert!(core.starts_with(root) && model.starts_with(root) && tools.starts_with(root)); + } + + #[test] + fn resident_cognition_roles_keep_their_owning_manifests() { + let packaged_roles = required_packaged_release_binaries("x86_64-unknown-linux-gnu") + .into_iter() + .map(|(role, _)| role) + .collect::>(); + for role in [ + "swarm", + "coordinator", + "model-runtime", + "tool-codex-mcp-spine", + ] { + assert!(packaged_roles.contains(role), "release omits {role}"); + } + assert_eq!( + required_release_build_target("swarm").unwrap(), + ("epiphany-core", "epiphany-swarm") + ); + assert_eq!( + required_release_build_target("coordinator").unwrap(), + ("epiphany-core", "epiphany-mvp-coordinator") + ); + assert_eq!( + required_release_build_target("model-runtime").unwrap(), + ("epiphany-openai-runtime", "epiphany-model-runtime") + ); + assert_eq!( + required_release_build_target("tool-codex-mcp-spine").unwrap(), + ( + "epiphany-tool-codex-mcp-spine", + "epiphany-tool-codex-mcp-spine" + ) + ); + } + fn fixture() -> (TempDir, EpiphanyPackagedReleaseEntry) { let dir = TempDir::new().unwrap(); let root = dir.path().join("release"); fs::create_dir(&root).unwrap(); let mut binaries = Vec::new(); - for (index, (role, name)) in required_packaged_release_binaries().into_iter().enumerate() { - let path = root.join(name); + for (index, (role, name)) in required_packaged_release_binaries("x86_64-unknown-linux-gnu") + .into_iter() + .enumerate() + { + let path = root.join(&name); fs::write(&path, format!("binary-{index}")).unwrap(); - binaries.push(binary_record(role, name, &path).unwrap()); + binaries.push(binary_record(role, &name, &path).unwrap()); } binaries.sort_by(|a, b| a.role.cmp(&b.role)); let id = release_id("runtime", &"a".repeat(40), "target", "rustc", &binaries); @@ -721,6 +825,23 @@ mod tests { assert!(validate_epiphany_packaged_release(&e).is_err()); } #[test] + fn missing_resident_cognition_binary_is_rejected() { + let (_d, mut e) = fixture(); + e.binaries.retain(|binary| binary.role != "model-runtime"); + assert!(validate_epiphany_packaged_release(&e).is_err()); + } + #[test] + fn substituted_resident_cognition_binary_is_rejected() { + let (_d, mut e) = fixture(); + let model = e + .binaries + .iter_mut() + .find(|binary| binary.role == "model-runtime") + .unwrap(); + model.file_name = "epiphany-openai-runtime".into(); + assert!(validate_epiphany_packaged_release(&e).is_err()); + } + #[test] fn counterfeit_release_id_is_rejected() { let (_d, mut e) = fixture(); e.release_id = format!("sha256-{}", "0".repeat(64)); diff --git a/epiphany-core/src/process_observation.rs b/epiphany-core/src/process_observation.rs index 1c4bfbec..87dcaad1 100644 --- a/epiphany-core/src/process_observation.rs +++ b/epiphany-core/src/process_observation.rs @@ -58,6 +58,13 @@ pub fn observe_process_instance(expected: &ProcessInstanceIdentity) -> ProcessIn platform::observe(expected) } +pub fn terminate_process_instance(expected: &ProcessInstanceIdentity) -> Result<()> { + if observe_process_instance(expected) != ProcessInstanceObservation::ExactAlive { + bail!("refusing to terminate a process whose exact incarnation is not proven alive"); + } + platform::terminate(expected) +} + /// Returns a boot-incarnation token only when the platform can prove it. pub fn native_boot_identity() -> Option { platform::boot_identity() @@ -96,7 +103,7 @@ mod platform { }; use windows_sys::Win32::System::Threading::{ GetExitCodeProcess, GetProcessTimes, OpenProcess, PROCESS_QUERY_LIMITED_INFORMATION, - QueryFullProcessImageNameW, WaitForSingleObject, + PROCESS_TERMINATE, QueryFullProcessImageNameW, TerminateProcess, WaitForSingleObject, }; #[repr(C)] @@ -287,6 +294,28 @@ mod platform { } } + pub(super) fn terminate(expected: &ProcessInstanceIdentity) -> Result<()> { + let raw = unsafe { + OpenProcess( + PROCESS_TERMINATE | PROCESS_QUERY_LIMITED_INFORMATION, + 0, + expected.process_id, + ) + }; + if raw.is_null() { + bail!("failed to open exact process for termination"); + } + let handle = OwnedHandle(raw); + if identity_from_handle(expected.process_id, &handle)? != *expected { + bail!("process incarnation changed before termination actuator acquired its handle"); + } + let ok = unsafe { TerminateProcess(handle.0, 1) }; + if ok == 0 { + bail!("failed to terminate exact process"); + } + Ok(()) + } + pub(super) fn boot_identity() -> Option { let mut information = SystemTimeOfDayInformation { boot_time: 0, @@ -398,6 +427,42 @@ mod platform { } } + pub(super) fn terminate(expected: &ProcessInstanceIdentity) -> Result<()> { + #[cfg(target_os = "linux")] + { + let pidfd = unsafe { + libc::syscall(libc::SYS_pidfd_open, expected.process_id as i32, 0) as i32 + }; + if pidfd < 0 { + return Err(std::io::Error::last_os_error()) + .context("pidfd_open exact coordinator"); + } + if observe(expected) != ProcessInstanceObservation::ExactAlive { + unsafe { libc::close(pidfd) }; + bail!("process incarnation changed before pidfd termination"); + } + let result = unsafe { + libc::syscall( + libc::SYS_pidfd_send_signal, + pidfd, + libc::SIGTERM, + std::ptr::null::(), + 0, + ) + }; + unsafe { libc::close(pidfd) }; + if result != 0 { + return Err(std::io::Error::last_os_error()) + .context("pidfd_send_signal exact coordinator"); + } + return Ok(()); + } + #[cfg(not(target_os = "linux"))] + bail!( + "exact inherited process termination requires a native incarnation handle on this Unix platform" + ) + } + pub(super) fn boot_identity() -> Option { std::fs::read_to_string("/proc/sys/kernel/random/boot_id") .ok() @@ -426,6 +491,9 @@ mod platform { .to_string(), } } + pub(super) fn terminate(_: &ProcessInstanceIdentity) -> Result<()> { + bail!("exact process termination is unsupported on this platform") + } pub(super) fn boot_identity() -> Option { None } diff --git a/epiphany-core/src/resident_self.rs b/epiphany-core/src/resident_self.rs new file mode 100644 index 00000000..d17ed55e --- /dev/null +++ b/epiphany-core/src/resident_self.rs @@ -0,0 +1,1712 @@ +use anyhow::{Context, Result, anyhow}; +use cultcache_rs::{CultCache, DatabaseEntry, SingleFileMessagePackBackingStore}; +use serde::{Deserialize, Serialize}; +use sha2::{Digest, Sha256}; +use std::path::{Path, PathBuf}; + +pub const RESIDENT_SELF_STATE_KEY: &str = "resident-self"; +pub const RESIDENT_SELF_STATE_SCHEMA_VERSION: &str = "epiphany.resident_self.state.v0"; +pub const RESIDENT_SELF_RUNTIME_RECEIPT_SCHEMA_VERSION: &str = + "epiphany.resident_self.runtime_receipt.v0"; +pub const RESIDENT_SELF_PRESSURE_SCHEMA_VERSION: &str = "epiphany.resident_self.pressure.v0"; +pub const RESIDENT_SELF_GRANT_SCHEMA_VERSION: &str = "epiphany.resident_self.heartbeat_grant.v0"; +pub const RESIDENT_SELF_ACK_SCHEMA_VERSION: &str = "epiphany.resident_self.terminal_ack.v0"; +pub const RESIDENT_SELF_CHILD_CLAIM_SCHEMA_VERSION: &str = "epiphany.resident_self.child_claim.v0"; + +#[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] +#[cultcache( + type = "epiphany.resident_self.pressure.v0", + schema = "ResidentSelfPressure" +)] +pub struct ResidentSelfPressure { + #[cultcache(key = 0)] + pub schema_version: String, + #[cultcache(key = 1)] + pub pressure_id: String, + #[cultcache(key = 2)] + pub kind: String, + #[cultcache(key = 3)] + pub provenance_ref: String, + #[cultcache(key = 4)] + pub objective: String, + #[cultcache(key = 5)] + pub created_at_millis: u64, + #[cultcache(key = 6)] + pub status: String, + #[cultcache(key = 7, default)] + pub consumed_by_grant_id: Option, + #[cultcache(key = 8, default)] + pub private_state_exposed: bool, +} + +impl ResidentSelfPressure { + pub fn validate(&self) -> Result<()> { + if self.schema_version != RESIDENT_SELF_PRESSURE_SCHEMA_VERSION + || !matches!( + self.kind.as_str(), + "operator-objective" + | "body-map-drift" + | "persona-feedback" + | "imagination-proposal" + ) + || self.pressure_id.trim().is_empty() + || self.provenance_ref.trim().is_empty() + || self.objective.trim().is_empty() + || self.status != "pending" + || self.private_state_exposed + { + return Err(anyhow!( + "resident Self pressure is not valid pending typed pressure" + )); + } + Ok(()) + } +} + +#[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] +#[cultcache( + type = "epiphany.resident_self.heartbeat_grant.v0", + schema = "ResidentSelfHeartbeatGrant" +)] +pub struct ResidentSelfHeartbeatGrant { + #[cultcache(key = 0)] + pub schema_version: String, + #[cultcache(key = 1)] + pub grant_id: String, + #[cultcache(key = 2)] + pub pressure_id: String, + #[cultcache(key = 3)] + pub pressure_kind: String, + #[cultcache(key = 4)] + pub provenance_ref: String, + #[cultcache(key = 5)] + pub objective: String, + #[cultcache(key = 6)] + pub heartbeat_schedule_id: String, + #[cultcache(key = 7)] + pub heartbeat_action_id: String, + #[cultcache(key = 8)] + pub issued_at_millis: u64, + #[cultcache(key = 9, default)] + pub consumed_at_millis: Option, + #[cultcache(key = 10, default)] + pub private_state_exposed: bool, +} + +#[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] +#[cultcache( + type = "epiphany.resident_self.terminal_ack.v0", + schema = "ResidentSelfTerminalAck" +)] +pub struct ResidentSelfTerminalAck { + #[cultcache(key = 0)] + pub schema_version: String, + #[cultcache(key = 1)] + pub ack_id: String, + #[cultcache(key = 2)] + pub grant_id: String, + #[cultcache(key = 3)] + pub heartbeat_schedule_id: String, + #[cultcache(key = 4)] + pub heartbeat_action_id: String, + #[cultcache(key = 5)] + pub launch_digest: String, + #[cultcache(key = 6)] + pub coordinator_receipt_id: String, + #[cultcache(key = 7)] + pub terminal_status: String, + #[cultcache(key = 8)] + pub completed_at_millis: u64, + #[cultcache(key = 9, default)] + pub consumed_by_heartbeat_at_millis: Option, + #[cultcache(key = 10, default)] + pub private_state_exposed: bool, +} + +#[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] +#[cultcache( + type = "epiphany.resident_self.child_claim.v0", + schema = "ResidentSelfChildClaim" +)] +pub struct ResidentSelfChildClaim { + #[cultcache(key = 0)] + pub schema_version: String, + #[cultcache(key = 1)] + pub claim_id: String, + #[cultcache(key = 2)] + pub preparation_id: String, + #[cultcache(key = 3)] + pub grant_id: String, + #[cultcache(key = 4)] + pub launch_digest: String, + #[cultcache(key = 5)] + pub process_id: u32, + #[cultcache(key = 6)] + pub process_creation_token: u64, + #[cultcache(key = 7)] + pub executable_path: PathBuf, + #[cultcache(key = 8)] + pub executable_digest: String, + #[cultcache(key = 9)] + pub claimed_at_millis: u64, + #[cultcache(key = 10, default)] + pub private_state_exposed: bool, +} + +#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub enum ResidentSelfWake { + Explicit { objective: String }, +} + +#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct ResidentSelfPolicy { + pub workspace: PathBuf, + pub coordinator_bin: PathBuf, + pub model_runtime_bin: PathBuf, + pub tool_adapter_bin: PathBuf, + pub runtime_store: PathBuf, + pub local_verse_store: PathBuf, + pub agent_memory_store: PathBuf, + pub artifact_root: PathBuf, + pub codex_home: PathBuf, + pub model_provider: String, + pub max_steps: u64, + pub turn_timeout_seconds: u64, + pub cooldown_seconds: u64, + pub idle_sleep_seconds: u64, + pub failure_backoff_seconds: u64, + pub release_commit: String, + pub release_manifest_digest: String, + pub release_store: PathBuf, + pub release_runtime_id: String, + pub release_id: String, + pub release_witness_sha256: String, +} + +impl ResidentSelfPolicy { + pub fn validate(&self) -> Result<()> { + for (name, path) in [ + ("workspace", &self.workspace), + ("coordinator binary", &self.coordinator_bin), + ("model runtime binary", &self.model_runtime_bin), + ("tool adapter binary", &self.tool_adapter_bin), + ("runtime store", &self.runtime_store), + ("local Verse store", &self.local_verse_store), + ("agent memory store", &self.agent_memory_store), + ("artifact root", &self.artifact_root), + ("Codex home", &self.codex_home), + ("release store", &self.release_store), + ] { + if !path.is_absolute() { + return Err(anyhow!( + "resident Self {name} path must be absolute: {}", + path.display() + )); + } + } + if self.model_provider.trim().is_empty() + || self.max_steps == 0 + || self.turn_timeout_seconds == 0 + { + return Err(anyhow!( + "resident Self policy requires a model provider and positive turn bounds" + )); + } + if self.release_commit.trim().is_empty() || self.release_manifest_digest.trim().is_empty() { + return Err(anyhow!( + "resident Self policy requires witnessed release commit and manifest digest" + )); + } + if self.release_runtime_id.trim().is_empty() + || self.release_id.trim().is_empty() + || self.release_witness_sha256.trim().is_empty() + { + return Err(anyhow!( + "resident Self policy requires pinned packaged-release identity" + )); + } + Ok(()) + } +} + +pub fn authenticate_resident_self_policy(policy: &mut ResidentSelfPolicy) -> Result<()> { + let witness = crate::authenticate_epiphany_packaged_release( + &policy.release_store, + &policy.release_runtime_id, + &policy.release_id, + &policy.release_witness_sha256, + )?; + policy.coordinator_bin = crate::epiphany_packaged_release_binary_path(&witness, "coordinator")?; + policy.model_runtime_bin = + crate::epiphany_packaged_release_binary_path(&witness, "model-runtime")?; + policy.tool_adapter_bin = + crate::epiphany_packaged_release_binary_path(&witness, "tool-codex-mcp-spine")?; + policy.release_commit = witness.source_commit_sha; + policy.release_manifest_digest = policy.release_witness_sha256.clone(); + policy.validate() +} + +pub fn validate_resident_self_store_separation( + state_store: &Path, + policy: &ResidentSelfPolicy, +) -> Result<()> { + if !state_store.is_absolute() { + return Err(anyhow!("resident Self state store must be absolute")); + } + let state_canonical = canonical_store_path(state_store)?; + for other in [ + &policy.runtime_store, + &policy.local_verse_store, + &policy.agent_memory_store, + &policy.release_store, + ] { + if state_canonical == canonical_store_path(other)? + || same_existing_file(state_store, other)? + { + return Err(anyhow!( + "resident Self state store must be physically separate from runtime, Verse, Mind, and release stores" + )); + } + } + Ok(()) +} + +fn canonical_store_path(path: &Path) -> Result { + if path.exists() { + return Ok(path.canonicalize()?); + } + let parent = path + .parent() + .ok_or_else(|| anyhow!("store path has no parent"))?; + Ok(parent.canonicalize()?.join( + path.file_name() + .ok_or_else(|| anyhow!("store path has no file name"))?, + )) +} + +fn same_existing_file(left: &Path, right: &Path) -> Result { + if !left.exists() || !right.exists() { + return Ok(false); + } + #[cfg(unix)] + { + use std::os::unix::fs::MetadataExt; + let left = std::fs::metadata(left)?; + let right = std::fs::metadata(right)?; + return Ok(left.dev() == right.dev() && left.ino() == right.ino()); + } + #[cfg(windows)] + { + return Ok(windows_file_identity(left)? == windows_file_identity(right)?); + } + #[allow(unreachable_code)] + Ok(false) +} + +#[cfg(windows)] +fn windows_file_identity(path: &Path) -> Result<(u32, u64)> { + use std::os::windows::ffi::OsStrExt; + use windows_sys::Win32::Foundation::{CloseHandle, INVALID_HANDLE_VALUE}; + use windows_sys::Win32::Storage::FileSystem::{ + BY_HANDLE_FILE_INFORMATION, CreateFileW, FILE_ATTRIBUTE_NORMAL, FILE_SHARE_DELETE, + FILE_SHARE_READ, FILE_SHARE_WRITE, GetFileInformationByHandle, OPEN_EXISTING, + }; + let wide = path + .as_os_str() + .encode_wide() + .chain(Some(0)) + .collect::>(); + let handle = unsafe { + CreateFileW( + wide.as_ptr(), + 0, + FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, + std::ptr::null(), + OPEN_EXISTING, + FILE_ATTRIBUTE_NORMAL, + std::ptr::null_mut(), + ) + }; + if handle == INVALID_HANDLE_VALUE { + return Err(anyhow!("failed to open store for file-identity validation")); + } + let mut info = unsafe { std::mem::zeroed::() }; + let ok = unsafe { GetFileInformationByHandle(handle, &mut info) }; + unsafe { CloseHandle(handle) }; + if ok == 0 { + return Err(anyhow!("failed to read store file identity")); + } + Ok(( + info.dwVolumeSerialNumber, + ((info.nFileIndexHigh as u64) << 32) | info.nFileIndexLow as u64, + )) +} + +#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct ResidentSelfTurnLease { + pub turn_id: String, + pub wake: ResidentSelfWake, + pub process_id: u32, + pub process_creation_token: u64, + pub process_executable_path: PathBuf, + pub started_at_millis: u64, + pub grant_id: String, + pub launch_digest: String, + pub policy_digest: String, + pub argv_digest: String, + pub objective_digest: String, + pub release_commit: String, + pub release_manifest_digest: String, + pub coordinator_executable_digest: String, +} + +#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct ResidentSelfPreparedLaunch { + pub preparation_id: String, + pub prepared_at_millis: u64, + pub grant: ResidentSelfHeartbeatGrant, + pub argv: Vec, + pub launch_digest: String, + pub policy_digest: String, + pub argv_digest: String, + pub objective_digest: String, + pub release_commit: String, + pub release_manifest_digest: String, + pub coordinator_executable_digest: String, +} + +#[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] +#[cultcache(type = "epiphany.resident_self.state", schema = "ResidentSelfState")] +pub struct ResidentSelfState { + #[cultcache(key = 0)] + pub schema_version: String, + #[cultcache(key = 1)] + pub revision: u64, + #[cultcache(key = 2, default)] + pub active_turn: Option, + #[cultcache(key = 3, default)] + pub last_coordinator_receipt_id: Option, + #[cultcache(key = 4, default)] + pub next_eligible_at_millis: u64, + #[cultcache(key = 5, default)] + pub consecutive_failures: u64, + #[cultcache(key = 6, default)] + pub prepared_launch: Option, +} + +impl Default for ResidentSelfState { + fn default() -> Self { + Self { + schema_version: RESIDENT_SELF_STATE_SCHEMA_VERSION.to_string(), + revision: 0, + active_turn: None, + last_coordinator_receipt_id: None, + next_eligible_at_millis: 0, + consecutive_failures: 0, + prepared_launch: None, + } + } +} + +#[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] +#[cultcache( + type = "epiphany.resident_self.runtime_receipt.v0", + schema = "ResidentSelfRuntimeReceipt" +)] +pub struct ResidentSelfRuntimeReceipt { + #[cultcache(key = 0)] + pub schema_version: String, + #[cultcache(key = 1)] + pub receipt_id: String, + #[cultcache(key = 2)] + pub occurred_at_millis: u64, + #[cultcache(key = 3)] + pub status: String, + #[cultcache(key = 4)] + pub reason: String, + #[cultcache(key = 5, default)] + pub turn_id: Option, + #[cultcache(key = 6, default)] + pub coordinator_receipt_id: Option, + #[cultcache(key = 7, default)] + pub process_id: Option, + #[cultcache(key = 8, default)] + pub private_state_exposed: bool, +} + +#[derive(Clone, Debug, PartialEq, Eq)] +pub enum ChildObservation { + Running, + Exited(i32), + Missing, +} + +#[derive(Clone, Debug, PartialEq, Eq)] +pub struct CoordinatorLaunch { + pub turn_id: String, + pub wake: ResidentSelfWake, + pub argv: Vec, +} + +#[derive(Clone, Debug, PartialEq, Eq)] +pub struct LaunchedCoordinator { + pub process_id: u32, + pub process_creation_token: u64, + pub process_executable_path: PathBuf, +} + +pub trait ResidentSelfPorts { + fn brake_engaged(&mut self) -> Result; + fn observe_child(&mut self, lease: &ResidentSelfTurnLease) -> Result; + fn request_child_stop(&mut self, lease: &ResidentSelfTurnLease) -> Result<()>; + fn launch_coordinator(&mut self, launch: &CoordinatorLaunch) -> Result; + fn coordinator_receipt_since( + &mut self, + turn_id: &str, + started_at_millis: u64, + ) -> Result>; +} + +#[derive(Clone, Debug, PartialEq, Eq)] +pub enum ResidentSelfOutcome { + Braked, + Draining, + Sleeping, + Running, + Launched, + Completed, + Failed, +} + +pub fn coordinator_argv( + policy: &ResidentSelfPolicy, + turn_id: &str, + wake: &ResidentSelfWake, +) -> Vec { + let artifact_dir = policy.artifact_root.join(turn_id); + let mut argv = vec![ + "--model-runtime-bin".into(), + policy.model_runtime_bin.display().to_string(), + "--tool-adapter-bin".into(), + policy.tool_adapter_bin.display().to_string(), + "--model-provider".into(), + policy.model_provider.clone(), + "--thread-id".into(), + turn_id.into(), + "--cwd".into(), + policy.workspace.display().to_string(), + "--codex-home".into(), + policy.codex_home.display().to_string(), + "--artifact-dir".into(), + artifact_dir.display().to_string(), + "--agent-memory-dir".into(), + policy.agent_memory_store.display().to_string(), + "--runtime-store".into(), + policy.runtime_store.display().to_string(), + "--local-verse-store".into(), + policy.local_verse_store.display().to_string(), + "--mode".into(), + "plan".into(), + "--max-steps".into(), + policy.max_steps.to_string(), + "--max-runtime-seconds".into(), + policy.turn_timeout_seconds.to_string(), + "--no-auto-tools".into(), + ]; + let ResidentSelfWake::Explicit { objective } = wake; + argv.extend(["--objective".into(), objective.clone()]); + argv +} + +#[cfg(test)] +fn reconcile_resident_self( + state: &mut ResidentSelfState, + policy: &ResidentSelfPolicy, + ports: &mut impl ResidentSelfPorts, + now_millis: u64, + wake: Option, +) -> Result<(ResidentSelfOutcome, ResidentSelfRuntimeReceipt)> { + policy.validate()?; + let receipt_revision = state.revision + 1; + let receipt = |status: &str, + reason: &str, + turn_id: Option, + coordinator_receipt_id: Option, + process_id: Option| { + ResidentSelfRuntimeReceipt { + schema_version: RESIDENT_SELF_RUNTIME_RECEIPT_SCHEMA_VERSION.into(), + receipt_id: format!("resident-self-{now_millis}-{receipt_revision}"), + occurred_at_millis: now_millis, + status: status.into(), + reason: reason.into(), + turn_id, + coordinator_receipt_id, + process_id, + private_state_exposed: false, + } + }; + if ports.brake_engaged()? && state.active_turn.is_none() { + return Ok(( + ResidentSelfOutcome::Braked, + receipt( + "braked", + "local Verse swarm brake is engaged", + state.active_turn.as_ref().map(|v| v.turn_id.clone()), + None, + state.active_turn.as_ref().map(|v| v.process_id), + ), + )); + } + if let Some(active) = state.active_turn.clone() { + if ports.brake_engaged()? { + match ports.observe_child(&active)? { + ChildObservation::Running => { + ports.request_child_stop(&active)?; + return Ok(( + ResidentSelfOutcome::Draining, + receipt( + "draining", + "local Verse brake is engaged; exact active coordinator stop requested and lease remains active until termination is proven", + Some(active.turn_id), + None, + Some(active.process_id), + ), + )); + } + ChildObservation::Exited(_) | ChildObservation::Missing => { + // Continue into terminal reconciliation. A brake does not erase receipt obligations. + } + } + } + match ports.observe_child(&active)? { + ChildObservation::Running => { + return Ok(( + ResidentSelfOutcome::Running, + receipt( + "running", + "bounded coordinator turn remains active", + Some(active.turn_id), + None, + Some(active.process_id), + ), + )); + } + ChildObservation::Exited(0) => { + if let Some(coordinator_receipt_id) = + ports.coordinator_receipt_since(&active.turn_id, active.started_at_millis)? + { + state.active_turn = None; + state.last_coordinator_receipt_id = Some(coordinator_receipt_id.clone()); + state.next_eligible_at_millis = + now_millis.saturating_add(policy.cooldown_seconds * 1000); + state.consecutive_failures = 0; + state.revision += 1; + return Ok(( + ResidentSelfOutcome::Completed, + receipt( + "completed", + "coordinator exited successfully with typed run receipt", + Some(active.turn_id), + Some(coordinator_receipt_id), + Some(active.process_id), + ), + )); + } + state.active_turn = None; + state.consecutive_failures += 1; + state.next_eligible_at_millis = + now_millis.saturating_add(policy.failure_backoff_seconds * 1000); + state.revision += 1; + return Ok(( + ResidentSelfOutcome::Failed, + receipt( + "failed", + "coordinator exited zero without a typed run receipt", + Some(active.turn_id), + None, + Some(active.process_id), + ), + )); + } + ChildObservation::Exited(code) => { + state.active_turn = None; + state.consecutive_failures += 1; + state.next_eligible_at_millis = + now_millis.saturating_add(policy.failure_backoff_seconds * 1000); + state.revision += 1; + return Ok(( + ResidentSelfOutcome::Failed, + receipt( + "failed", + &format!("coordinator exited with status {code}"), + Some(active.turn_id), + None, + Some(active.process_id), + ), + )); + } + ChildObservation::Missing => { + state.active_turn = None; + state.consecutive_failures += 1; + state.next_eligible_at_millis = + now_millis.saturating_add(policy.failure_backoff_seconds * 1000); + state.revision += 1; + return Ok(( + ResidentSelfOutcome::Failed, + receipt( + "failed", + "coordinator process disappeared without a typed run receipt", + Some(active.turn_id), + None, + Some(active.process_id), + ), + )); + } + } + } + if now_millis < state.next_eligible_at_millis || wake.is_none() { + return Ok(( + ResidentSelfOutcome::Sleeping, + receipt( + "sleeping", + if wake.is_none() { + "no explicit or existing idle wake is pending; proactive Body and feedback wake derivation is not implemented" + } else { + "cooldown or failure backoff remains active" + }, + None, + None, + None, + ), + )); + } + let wake = wake.expect("checked above"); + let turn_id = format!("resident-self-turn-{now_millis}-{}", state.revision + 1); + let launch = CoordinatorLaunch { + turn_id: turn_id.clone(), + wake: wake.clone(), + argv: coordinator_argv(policy, &turn_id, &wake), + }; + let process = ports.launch_coordinator(&launch)?; + let process_id = process.process_id; + state.active_turn = Some(ResidentSelfTurnLease { + turn_id: turn_id.clone(), + wake, + process_id, + process_creation_token: process.process_creation_token, + process_executable_path: process.process_executable_path, + started_at_millis: now_millis, + grant_id: String::new(), + launch_digest: String::new(), + policy_digest: String::new(), + argv_digest: String::new(), + objective_digest: String::new(), + release_commit: policy.release_commit.clone(), + release_manifest_digest: policy.release_manifest_digest.clone(), + coordinator_executable_digest: String::new(), + }); + state.revision += 1; + Ok(( + ResidentSelfOutcome::Launched, + receipt( + "launched", + "one bounded coordinator turn admitted", + Some(turn_id), + None, + Some(process_id), + ), + )) +} + +fn state_cache(path: &Path) -> Result { + let mut cache = CultCache::new(); + cache.register_entry_type::()?; + cache.register_entry_type::()?; + cache.register_entry_type::()?; + cache.register_entry_type::()?; + cache.register_entry_type::()?; + cache.register_entry_type::()?; + cache.add_generic_backing_store(SingleFileMessagePackBackingStore::new(path)); + cache.pull_all_backing_stores()?; + Ok(cache) +} + +pub fn enqueue_resident_self_pressure(path: &Path, pressure: &ResidentSelfPressure) -> Result<()> { + pressure.validate()?; + let cache = state_cache(path)?; + let (entry, _) = cache.prepare_entry(&pressure.pressure_id, pressure)?; + if !SingleFileMessagePackBackingStore::new(path).insert_entry_if_absent(entry)? { + return Err(anyhow!("resident Self pressure identity already exists")); + } + Ok(()) +} + +fn enqueue_resident_self_pressure_idempotent( + path: &Path, + pressure: &ResidentSelfPressure, +) -> Result { + let cache = state_cache(path)?; + if let Some(existing) = cache.get::(&pressure.pressure_id)? { + if existing == *pressure { + return Ok(false); + } + return Err(anyhow!( + "resident Self producer pressure identity collision" + )); + } + enqueue_resident_self_pressure(path, pressure)?; + Ok(true) +} + +pub fn ingest_resident_self_domain_pressure( + resident_store: &Path, + runtime_store: &Path, + local_verse_store: &Path, + runtime_id: &str, + now_millis: u64, +) -> Result { + let mut inserted = 0; + if let Some(model) = crate::runtime_current_repo_model(runtime_store)? { + let model_hash = crate::memory_graph_model_hash(&model)?; + inserted += usize::from(enqueue_resident_self_pressure_idempotent(resident_store, &ResidentSelfPressure { + schema_version: RESIDENT_SELF_PRESSURE_SCHEMA_VERSION.into(), + pressure_id: format!("body-map-drift-{}", model_hash.trim_start_matches("sha256:")), + kind: "body-map-drift".into(), provenance_ref: format!("cultcache://runtime/repo-model/{model_hash}"), + objective: "Inspect the admitted persistent Modeling map for new Body direction and suggest coherent improvements without adopting or implementing them.".into(), + created_at_millis: now_millis, status: "pending".into(), consumed_by_grant_id: None, private_state_exposed: false, + })?); + } + if let Some(feedback) = + crate::load_arrival_latest_epiphany_cultmesh_bifrost_collaboration_feedback( + local_verse_store, + runtime_id.to_string(), + )? + { + inserted += usize::from(enqueue_resident_self_pressure_idempotent( + resident_store, + &ResidentSelfPressure { + schema_version: RESIDENT_SELF_PRESSURE_SCHEMA_VERSION.into(), + pressure_id: format!("persona-feedback-{}", feedback.feedback_id), + kind: "persona-feedback".into(), + provenance_ref: format!( + "cultmesh://collaboration-feedback/{}", + feedback.feedback_id + ), + objective: format!( + "Let Imagination consider organizational Persona feedback: {}", + feedback.feedback_summary + ), + created_at_millis: now_millis, + status: "pending".into(), + consumed_by_grant_id: None, + private_state_exposed: false, + }, + )?); + } + if let Some(proposal) = crate::load_latest_epiphany_cultmesh_imagination_consensus_receipt( + local_verse_store, + runtime_id.to_string(), + )? { + inserted += usize::from(enqueue_resident_self_pressure_idempotent( + resident_store, + &ResidentSelfPressure { + schema_version: RESIDENT_SELF_PRESSURE_SCHEMA_VERSION.into(), + pressure_id: format!("imagination-proposal-{}", proposal.receipt_id), + kind: "imagination-proposal".into(), + provenance_ref: format!("cultmesh://imagination-consensus/{}", proposal.receipt_id), + objective: format!( + "Review Imagination consensus packet {} as proposal pressure; do not adopt, implement, release, or deploy it automatically.", + proposal.consensus_packet_ref + ), + created_at_millis: now_millis, + status: "pending".into(), + consumed_by_grant_id: None, + private_state_exposed: false, + }, + )?); + } + Ok(inserted) +} + +pub fn heartbeat_issue_resident_self_grant( + path: &Path, + schedule_id: &str, + action_id: &str, + now_millis: u64, +) -> Result> { + let cache = state_cache(path)?; + if cache + .get_all::()? + .iter() + .any(|grant| grant.consumed_at_millis.is_none()) + { + return Ok(None); + } + let mut pending = cache + .get_all::()? + .into_iter() + .filter(|pressure| pressure.status == "pending") + .collect::>(); + pending.sort_by(|a, b| { + a.created_at_millis + .cmp(&b.created_at_millis) + .then(a.pressure_id.cmp(&b.pressure_id)) + }); + let Some(mut pressure) = pending.into_iter().next() else { + return Ok(None); + }; + let grant_id = format!( + "resident-self-grant-{schedule_id}-{action_id}-{}", + pressure.pressure_id + ); + let grant = ResidentSelfHeartbeatGrant { + schema_version: RESIDENT_SELF_GRANT_SCHEMA_VERSION.into(), + grant_id: grant_id.clone(), + pressure_id: pressure.pressure_id.clone(), + pressure_kind: pressure.kind.clone(), + provenance_ref: pressure.provenance_ref.clone(), + objective: pressure.objective.clone(), + heartbeat_schedule_id: schedule_id.into(), + heartbeat_action_id: action_id.into(), + issued_at_millis: now_millis, + consumed_at_millis: None, + private_state_exposed: false, + }; + let snapshot = cache.snapshot_envelopes(); + let expected = snapshot + .iter() + .find(|entry| { + entry.r#type == ::TYPE + && entry.key == pressure.pressure_id + }) + .cloned() + .ok_or_else(|| anyhow!("pending pressure lost envelope"))?; + pressure.status = "consumed".into(); + pressure.consumed_by_grant_id = Some(grant_id); + let (pressure_entry, _) = cache.prepare_entry(&pressure.pressure_id, &pressure)?; + let (grant_entry, _) = cache.prepare_entry(&grant.grant_id, &grant)?; + if !SingleFileMessagePackBackingStore::new(path) + .compare_and_swap_batch(&[expected], vec![pressure_entry, grant_entry])? + { + return Err(anyhow!( + "heartbeat lost resident Self pressure-to-grant CAS" + )); + } + Ok(Some(grant)) +} + +pub fn pending_resident_self_pressure(path: &Path) -> Result { + Ok(state_cache(path)? + .get_all::()? + .iter() + .any(|pressure| pressure.status == "pending")) +} + +pub fn pending_resident_self_grant(path: &Path) -> Result> { + let mut grants = state_cache(path)? + .get_all::()? + .into_iter() + .filter(|grant| grant.consumed_at_millis.is_none()) + .collect::>(); + grants.sort_by(|a, b| { + a.issued_at_millis + .cmp(&b.issued_at_millis) + .then(a.grant_id.cmp(&b.grant_id)) + }); + Ok(grants.into_iter().next()) +} + +fn digest_parts(parts: impl IntoIterator>) -> String { + let mut hash = Sha256::new(); + for part in parts { + let bytes = part.as_ref(); + hash.update((bytes.len() as u64).to_le_bytes()); + hash.update(bytes); + } + format!("sha256:{:x}", hash.finalize()) +} + +pub fn resident_self_policy_digest(policy: &ResidentSelfPolicy) -> String { + digest_parts([ + policy.workspace.display().to_string(), + policy.coordinator_bin.display().to_string(), + policy.model_runtime_bin.display().to_string(), + policy.tool_adapter_bin.display().to_string(), + policy.runtime_store.display().to_string(), + policy.local_verse_store.display().to_string(), + policy.agent_memory_store.display().to_string(), + policy.model_provider.clone(), + policy.max_steps.to_string(), + policy.turn_timeout_seconds.to_string(), + policy.release_commit.clone(), + policy.release_manifest_digest.clone(), + ]) +} + +pub fn prepare_resident_self_launch( + path: &Path, + policy: &ResidentSelfPolicy, + now_millis: u64, +) -> Result> { + policy.validate()?; + let cache = state_cache(path)?; + let mut state = cache + .get::(RESIDENT_SELF_STATE_KEY)? + .unwrap_or_default(); + if state.active_turn.is_some() || state.prepared_launch.is_some() { + return Ok(None); + } + let Some(mut grant) = pending_resident_self_grant(path)? else { + return Ok(None); + }; + let turn_id = format!("resident-self-turn-{}", grant.grant_id); + let wake = ResidentSelfWake::Explicit { + objective: grant.objective.clone(), + }; + let mut argv = coordinator_argv(policy, &turn_id, &wake); + let executable = std::fs::read(&policy.coordinator_bin) + .with_context(|| format!("failed to hash {}", policy.coordinator_bin.display()))?; + let argv_digest = digest_parts(argv.iter().map(String::as_bytes)); + let policy_digest = resident_self_policy_digest(policy); + let objective_digest = digest_parts([grant.objective.as_bytes()]); + let coordinator_executable_digest = digest_parts([executable]); + let launch_digest = digest_parts([ + grant.grant_id.as_bytes(), + policy_digest.as_bytes(), + argv_digest.as_bytes(), + objective_digest.as_bytes(), + policy.release_commit.as_bytes(), + policy.release_manifest_digest.as_bytes(), + coordinator_executable_digest.as_bytes(), + ]); + let preparation_id = format!("resident-self-prepared-{}", grant.grant_id); + argv.extend([ + "--resident-state-store".into(), + path.display().to_string(), + "--resident-preparation-id".into(), + preparation_id.clone(), + "--resident-grant-id".into(), + grant.grant_id.clone(), + "--resident-launch-digest".into(), + launch_digest.clone(), + "--resident-policy-digest".into(), + policy_digest.clone(), + "--resident-argv-digest".into(), + argv_digest.clone(), + "--resident-objective-digest".into(), + objective_digest.clone(), + "--resident-release-commit".into(), + policy.release_commit.clone(), + "--resident-release-manifest-digest".into(), + policy.release_manifest_digest.clone(), + "--resident-executable-digest".into(), + coordinator_executable_digest.clone(), + ]); + let prepared = ResidentSelfPreparedLaunch { + preparation_id, + prepared_at_millis: now_millis, + grant: grant.clone(), + argv, + launch_digest, + policy_digest, + argv_digest, + objective_digest, + release_commit: policy.release_commit.clone(), + release_manifest_digest: policy.release_manifest_digest.clone(), + coordinator_executable_digest, + }; + let snapshot = cache.snapshot_envelopes(); + let mut expected = Vec::new(); + if let Some(envelope) = snapshot.iter().find(|entry| { + entry.r#type == ::TYPE + && entry.key == RESIDENT_SELF_STATE_KEY + }) { + expected.push(envelope.clone()); + } + let grant_expected = snapshot + .iter() + .find(|entry| { + entry.r#type == ::TYPE + && entry.key == grant.grant_id + }) + .cloned() + .ok_or_else(|| anyhow!("resident Self grant lost envelope"))?; + expected.push(grant_expected); + grant.consumed_at_millis = Some(now_millis); + state.prepared_launch = Some(prepared.clone()); + state.revision += 1; + let (state_entry, _) = cache.prepare_entry(RESIDENT_SELF_STATE_KEY, &state)?; + let (grant_entry, _) = cache.prepare_entry(&grant.grant_id, &grant)?; + if !SingleFileMessagePackBackingStore::new(path) + .compare_and_swap_batch(&expected, vec![state_entry, grant_entry])? + { + return Err(anyhow!("resident Self lost prepared-launch CAS")); + } + Ok(Some(prepared)) +} + +pub fn acknowledge_resident_self_launch( + path: &Path, + preparation_id: &str, + process: &LaunchedCoordinator, + started_at_millis: u64, +) -> Result { + let cache = state_cache(path)?; + let mut state = cache + .get::(RESIDENT_SELF_STATE_KEY)? + .ok_or_else(|| anyhow!("resident Self state missing after preparation"))?; + let prepared = state + .prepared_launch + .clone() + .filter(|prepared| prepared.preparation_id == preparation_id) + .ok_or_else(|| anyhow!("resident Self prepared launch identity disagrees"))?; + let claim_id = format!("resident-self-child-claim-{preparation_id}"); + let claim = cache + .get::(&claim_id)? + .ok_or_else(|| { + anyhow!("coordinator child did not atomically claim its preparation before cognition") + })?; + if claim.process_id != process.process_id + || claim.process_creation_token != process.process_creation_token + || claim.launch_digest != prepared.launch_digest + || claim.grant_id != prepared.grant.grant_id + { + return Err(anyhow!( + "coordinator child claim disagrees with parent process observation" + )); + } + let observed_executable = + std::fs::read(&process.process_executable_path).with_context(|| { + format!( + "failed to hash launched executable {}", + process.process_executable_path.display() + ) + })?; + if digest_parts([observed_executable]) != prepared.coordinator_executable_digest { + return Err(anyhow!( + "launched coordinator executable digest disagrees with preparation" + )); + } + let lease = ResidentSelfTurnLease { + turn_id: format!("resident-self-turn-{}", prepared.grant.grant_id), + wake: ResidentSelfWake::Explicit { + objective: prepared.grant.objective.clone(), + }, + process_id: process.process_id, + process_creation_token: process.process_creation_token, + process_executable_path: process.process_executable_path.clone(), + started_at_millis, + grant_id: prepared.grant.grant_id.clone(), + launch_digest: prepared.launch_digest.clone(), + policy_digest: prepared.policy_digest.clone(), + argv_digest: prepared.argv_digest.clone(), + objective_digest: prepared.objective_digest.clone(), + release_commit: prepared.release_commit.clone(), + release_manifest_digest: prepared.release_manifest_digest.clone(), + coordinator_executable_digest: prepared.coordinator_executable_digest.clone(), + }; + let expected = cache + .snapshot_envelopes() + .into_iter() + .find(|entry| { + entry.r#type == ::TYPE + && entry.key == RESIDENT_SELF_STATE_KEY + }) + .ok_or_else(|| anyhow!("resident Self state lost envelope"))?; + state.prepared_launch = None; + state.active_turn = Some(lease.clone()); + state.revision += 1; + let (replacement, _) = cache.prepare_entry(RESIDENT_SELF_STATE_KEY, &state)?; + if !SingleFileMessagePackBackingStore::new(path) + .compare_and_swap_entry(&expected, replacement)? + { + return Err(anyhow!("resident Self lost exact launch-ack CAS")); + } + Ok(lease) +} + +pub fn claim_resident_self_preparation_as_child( + path: &Path, + preparation_id: &str, + process: &LaunchedCoordinator, + now_millis: u64, +) -> Result { + let cache = state_cache(path)?; + let state = cache + .get::(RESIDENT_SELF_STATE_KEY)? + .ok_or_else(|| anyhow!("resident Self state is absent at child bootstrap"))?; + let prepared = state + .prepared_launch + .as_ref() + .filter(|prepared| prepared.preparation_id == preparation_id) + .ok_or_else(|| { + anyhow!("resident Self preparation is absent or disagrees at child bootstrap") + })?; + let observed_bytes = std::fs::read(&process.process_executable_path)?; + let executable_digest = digest_parts([observed_bytes]); + if executable_digest != prepared.coordinator_executable_digest { + return Err(anyhow!( + "child executable disagrees with witnessed preparation" + )); + } + let claim = ResidentSelfChildClaim { + schema_version: RESIDENT_SELF_CHILD_CLAIM_SCHEMA_VERSION.into(), + claim_id: format!("resident-self-child-claim-{preparation_id}"), + preparation_id: preparation_id.into(), + grant_id: prepared.grant.grant_id.clone(), + launch_digest: prepared.launch_digest.clone(), + process_id: process.process_id, + process_creation_token: process.process_creation_token, + executable_path: process.process_executable_path.clone(), + executable_digest, + claimed_at_millis: now_millis, + private_state_exposed: false, + }; + let (entry, _) = cache.prepare_entry(&claim.claim_id, &claim)?; + if !SingleFileMessagePackBackingStore::new(path).insert_entry_if_absent(entry)? { + return Err(anyhow!( + "resident Self preparation already has a child claimant" + )); + } + Ok(claim) +} + +pub fn resident_self_child_claim( + path: &Path, + preparation_id: &str, +) -> Result> { + state_cache(path)? + .get::(&format!("resident-self-child-claim-{preparation_id}")) +} + +pub fn complete_resident_self_turn( + path: &Path, + lease: &ResidentSelfTurnLease, + coordinator: &crate::EpiphanyCoordinatorRunReceipt, + now_millis: u64, +) -> Result { + if coordinator.thread_id != lease.turn_id + || !matches!( + coordinator.status.as_str(), + "planned" | "needsReview" | "completed" + ) + || coordinator.resident_grant_id.as_deref() != Some(&lease.grant_id) + || coordinator.resident_launch_digest.as_deref() != Some(&lease.launch_digest) + || coordinator.resident_policy_digest.as_deref() != Some(&lease.policy_digest) + || coordinator.resident_argv_digest.as_deref() != Some(&lease.argv_digest) + || coordinator.resident_objective_digest.as_deref() != Some(&lease.objective_digest) + || coordinator.resident_release_commit.as_deref() != Some(&lease.release_commit) + || coordinator.resident_release_manifest_digest.as_deref() + != Some(&lease.release_manifest_digest) + || coordinator.resident_executable_digest.as_deref() + != Some(&lease.coordinator_executable_digest) + { + return Err(anyhow!( + "coordinator terminal receipt does not exactly bind the resident launch contract" + )); + } + let cache = state_cache(path)?; + let mut state = cache + .get::(RESIDENT_SELF_STATE_KEY)? + .ok_or_else(|| anyhow!("resident Self state missing at terminal ack"))?; + if state.active_turn.as_ref() != Some(lease) { + return Err(anyhow!( + "resident Self active lease changed before terminal ack" + )); + } + let grant = cache + .get::(&lease.grant_id)? + .ok_or_else(|| anyhow!("resident Self grant missing at terminal ack"))?; + let ack = ResidentSelfTerminalAck { + schema_version: RESIDENT_SELF_ACK_SCHEMA_VERSION.into(), + ack_id: format!("resident-self-ack-{}", lease.grant_id), + grant_id: lease.grant_id.clone(), + heartbeat_schedule_id: grant.heartbeat_schedule_id, + heartbeat_action_id: grant.heartbeat_action_id, + launch_digest: lease.launch_digest.clone(), + coordinator_receipt_id: coordinator.receipt_id.clone(), + terminal_status: coordinator.status.clone(), + completed_at_millis: now_millis, + consumed_by_heartbeat_at_millis: None, + private_state_exposed: false, + }; + let expected = cache + .snapshot_envelopes() + .into_iter() + .find(|entry| { + entry.r#type == ::TYPE + && entry.key == RESIDENT_SELF_STATE_KEY + }) + .ok_or_else(|| anyhow!("resident Self state lost envelope"))?; + state.active_turn = None; + state.last_coordinator_receipt_id = Some(coordinator.receipt_id.clone()); + state.revision += 1; + let (state_entry, _) = cache.prepare_entry(RESIDENT_SELF_STATE_KEY, &state)?; + let (ack_entry, _) = cache.prepare_entry(&ack.ack_id, &ack)?; + if !SingleFileMessagePackBackingStore::new(path) + .compare_and_swap_batch(&[expected], vec![state_entry, ack_entry])? + { + return Err(anyhow!("resident Self lost terminal-ack CAS")); + } + Ok(ack) +} + +pub fn cancel_resident_self_turn( + path: &Path, + lease: &ResidentSelfTurnLease, + status: &str, + reason: &str, + now_millis: u64, +) -> Result { + if !matches!(status, "brake-cancelled" | "timed-out" | "process-failed") + || reason.trim().is_empty() + { + return Err(anyhow!( + "resident Self cancellation requires a typed terminal status and reason" + )); + } + let cache = state_cache(path)?; + let mut state = cache + .get::(RESIDENT_SELF_STATE_KEY)? + .ok_or_else(|| anyhow!("resident Self state missing at cancellation"))?; + if state.active_turn.as_ref() != Some(lease) { + return Err(anyhow!("resident Self cancellation lease changed")); + } + let grant = cache + .get::(&lease.grant_id)? + .ok_or_else(|| anyhow!("resident Self cancellation grant missing"))?; + let ack = ResidentSelfTerminalAck { + schema_version: RESIDENT_SELF_ACK_SCHEMA_VERSION.into(), + ack_id: format!("resident-self-cancel-{}-{status}", lease.grant_id), + grant_id: lease.grant_id.clone(), + heartbeat_schedule_id: grant.heartbeat_schedule_id, + heartbeat_action_id: grant.heartbeat_action_id, + launch_digest: lease.launch_digest.clone(), + coordinator_receipt_id: format!("resident-self-runtime-{status}-{}", lease.grant_id), + terminal_status: status.into(), + completed_at_millis: now_millis, + consumed_by_heartbeat_at_millis: None, + private_state_exposed: false, + }; + let expected = cache + .snapshot_envelopes() + .into_iter() + .find(|entry| { + entry.r#type == ::TYPE + && entry.key == RESIDENT_SELF_STATE_KEY + }) + .ok_or_else(|| anyhow!("resident Self cancellation state envelope missing"))?; + state.active_turn = None; + state.revision += 1; + state.consecutive_failures += u64::from(status != "brake-cancelled"); + let (state_entry, _) = cache.prepare_entry(RESIDENT_SELF_STATE_KEY, &state)?; + let (ack_entry, _) = cache.prepare_entry(&ack.ack_id, &ack)?; + if !SingleFileMessagePackBackingStore::new(path) + .compare_and_swap_batch(&[expected], vec![state_entry, ack_entry])? + { + return Err(anyhow!("resident Self lost cancellation CAS")); + } + Ok(ack) +} + +pub fn pending_resident_self_ack_for( + path: &Path, + schedule_id: &str, + action_id: &str, +) -> Result> { + Ok(state_cache(path)? + .get_all::()? + .into_iter() + .find(|ack| { + ack.heartbeat_schedule_id == schedule_id + && ack.heartbeat_action_id == action_id + && ack.consumed_by_heartbeat_at_millis.is_none() + })) +} + +pub fn heartbeat_consume_resident_self_ack( + path: &Path, + ack_id: &str, + now_millis: u64, +) -> Result<()> { + let cache = state_cache(path)?; + let mut ack = cache + .get::(ack_id)? + .ok_or_else(|| anyhow!("resident Self terminal ack is missing"))?; + if ack.consumed_by_heartbeat_at_millis.is_some() { + return Err(anyhow!("resident Self terminal ack was already consumed")); + } + let expected = cache + .snapshot_envelopes() + .into_iter() + .find(|entry| { + entry.r#type == ::TYPE && entry.key == ack_id + }) + .ok_or_else(|| anyhow!("terminal ack lost envelope"))?; + ack.consumed_by_heartbeat_at_millis = Some(now_millis); + let (replacement, _) = cache.prepare_entry(ack_id, &ack)?; + if !SingleFileMessagePackBackingStore::new(path) + .compare_and_swap_entry(&expected, replacement)? + { + return Err(anyhow!("heartbeat lost terminal ack CAS")); + } + Ok(()) +} + +pub fn load_resident_self_state(path: &Path) -> Result { + Ok(state_cache(path)? + .get::(RESIDENT_SELF_STATE_KEY)? + .unwrap_or_default()) +} + +#[cfg(test)] +mod tests { + use super::*; + use std::collections::BTreeMap; + + struct FakePorts { + brake: bool, + next_pid: u32, + children: BTreeMap, + receipt: Option, + launches: usize, + } + impl Default for FakePorts { + fn default() -> Self { + Self { + brake: false, + next_pid: 41, + children: BTreeMap::new(), + receipt: None, + launches: 0, + } + } + } + impl ResidentSelfPorts for FakePorts { + fn brake_engaged(&mut self) -> Result { + Ok(self.brake) + } + fn observe_child(&mut self, lease: &ResidentSelfTurnLease) -> Result { + Ok(self + .children + .get(&lease.process_id) + .cloned() + .unwrap_or(ChildObservation::Missing)) + } + fn request_child_stop(&mut self, lease: &ResidentSelfTurnLease) -> Result<()> { + self.children + .insert(lease.process_id, ChildObservation::Exited(-1)); + Ok(()) + } + fn launch_coordinator(&mut self, _: &CoordinatorLaunch) -> Result { + self.launches += 1; + let pid = self.next_pid; + self.children.insert(pid, ChildObservation::Running); + Ok(LaunchedCoordinator { + process_id: pid, + process_creation_token: 99, + process_executable_path: absolute("opt/epiphany/bin/epiphany-mvp-coordinator"), + }) + } + fn coordinator_receipt_since(&mut self, _: &str, _: u64) -> Result> { + Ok(self.receipt.clone()) + } + } + fn absolute(name: &str) -> PathBuf { + if cfg!(windows) { + PathBuf::from(format!("C:\\{name}")) + } else { + PathBuf::from(format!("/{name}")) + } + } + fn policy() -> ResidentSelfPolicy { + ResidentSelfPolicy { + workspace: absolute("workspace"), + coordinator_bin: absolute("opt/epiphany/bin/epiphany-mvp-coordinator"), + model_runtime_bin: absolute("opt/epiphany/bin/epiphany-model-runtime"), + tool_adapter_bin: absolute("opt/epiphany/bin/epiphany-tool-codex-mcp-spine"), + runtime_store: absolute("state/runtime.cc"), + local_verse_store: absolute("state/verse.cc"), + agent_memory_store: absolute("state/mind.cc"), + artifact_root: absolute("state/artifacts"), + codex_home: absolute("state/codex"), + model_provider: "local".into(), + max_steps: 2, + turn_timeout_seconds: 60, + cooldown_seconds: 10, + idle_sleep_seconds: 5, + failure_backoff_seconds: 20, + release_commit: "0123456789abcdef".into(), + release_manifest_digest: "sha256:test-manifest".into(), + release_store: absolute("state/release.cc"), + release_runtime_id: "test-runtime".into(), + release_id: "test-release".into(), + release_witness_sha256: "sha256:test-manifest".into(), + } + } + fn explicit() -> Option { + Some(ResidentSelfWake::Explicit { + objective: "inspect".into(), + }) + } + #[test] + fn brake_prevents_launch() -> Result<()> { + let mut s = ResidentSelfState::default(); + let mut p = FakePorts { + brake: true, + ..Default::default() + }; + assert_eq!( + reconcile_resident_self(&mut s, &policy(), &mut p, 1, explicit())?.0, + ResidentSelfOutcome::Braked + ); + assert_eq!(p.launches, 0); + Ok(()) + } + #[test] + fn brake_drains_active_turn_without_claiming_braked() -> Result<()> { + let mut s = ResidentSelfState::default(); + let mut p = FakePorts::default(); + reconcile_resident_self(&mut s, &policy(), &mut p, 1, explicit())?; + p.brake = true; + assert_eq!( + reconcile_resident_self(&mut s, &policy(), &mut p, 2, None)?.0, + ResidentSelfOutcome::Draining + ); + assert!(s.active_turn.is_some()); + assert_eq!( + reconcile_resident_self(&mut s, &policy(), &mut p, 3, None)?.0, + ResidentSelfOutcome::Failed + ); + Ok(()) + } + #[test] + fn one_turn_exclusion() -> Result<()> { + let mut s = ResidentSelfState::default(); + let mut p = FakePorts::default(); + reconcile_resident_self(&mut s, &policy(), &mut p, 1, explicit())?; + assert_eq!( + reconcile_resident_self(&mut s, &policy(), &mut p, 2, explicit())?.0, + ResidentSelfOutcome::Running + ); + assert_eq!(p.launches, 1); + Ok(()) + } + #[test] + fn exit_zero_without_receipt_is_failure() -> Result<()> { + let mut s = ResidentSelfState::default(); + let mut p = FakePorts::default(); + reconcile_resident_self(&mut s, &policy(), &mut p, 1, explicit())?; + p.children.insert(41, ChildObservation::Exited(0)); + assert_eq!( + reconcile_resident_self(&mut s, &policy(), &mut p, 2, None)?.0, + ResidentSelfOutcome::Failed + ); + assert_eq!(s.next_eligible_at_millis, 20_002); + Ok(()) + } + #[test] + fn crash_reentry_waits_for_backoff_then_launches() -> Result<()> { + let mut s = ResidentSelfState::default(); + let mut p = FakePorts::default(); + reconcile_resident_self(&mut s, &policy(), &mut p, 1, explicit())?; + p.children.insert(41, ChildObservation::Exited(7)); + reconcile_resident_self(&mut s, &policy(), &mut p, 2, None)?; + assert_eq!( + reconcile_resident_self(&mut s, &policy(), &mut p, 10_000, explicit())?.0, + ResidentSelfOutcome::Sleeping + ); + p.next_pid = 42; + assert_eq!( + reconcile_resident_self(&mut s, &policy(), &mut p, 20_002, explicit())?.0, + ResidentSelfOutcome::Launched + ); + Ok(()) + } + #[test] + fn cooldown_starts_after_typed_receipt() -> Result<()> { + let mut s = ResidentSelfState::default(); + let mut p = FakePorts::default(); + reconcile_resident_self(&mut s, &policy(), &mut p, 1, explicit())?; + p.children.insert(41, ChildObservation::Exited(0)); + p.receipt = Some("coordinator-receipt".into()); + assert_eq!( + reconcile_resident_self(&mut s, &policy(), &mut p, 5_000, None)?.0, + ResidentSelfOutcome::Completed + ); + assert_eq!(s.next_eligible_at_millis, 15_000); + assert_eq!( + reconcile_resident_self(&mut s, &policy(), &mut p, 14_999, explicit())?.0, + ResidentSelfOutcome::Sleeping + ); + Ok(()) + } + + #[test] + fn heartbeat_pressure_grant_and_prepared_launch_are_single_consumption_cas() -> Result<()> { + let temp = tempfile::tempdir()?; + let store = temp.path().join("resident-self.cc"); + let coordinator = temp.path().join("epiphany-mvp-coordinator"); + std::fs::write(&coordinator, b"witnessed executable")?; + let mut policy = policy(); + policy.coordinator_bin = coordinator.clone(); + let pressure = ResidentSelfPressure { + schema_version: RESIDENT_SELF_PRESSURE_SCHEMA_VERSION.into(), + pressure_id: "pressure-body-1".into(), + kind: "body-map-drift".into(), + provenance_ref: "cultmesh://body/drift/1".into(), + objective: "Model changed Body ownership.".into(), + created_at_millis: 1, + status: "pending".into(), + consumed_by_grant_id: None, + private_state_exposed: false, + }; + enqueue_resident_self_pressure(&store, &pressure)?; + let grant = heartbeat_issue_resident_self_grant(&store, "heartbeat-1", "action-1", 2)? + .expect("grant"); + assert!( + heartbeat_issue_resident_self_grant(&store, "heartbeat-2", "action-2", 3)?.is_none() + ); + let prepared = prepare_resident_self_launch(&store, &policy, 4)?.expect("prepared launch"); + assert_eq!(prepared.grant.grant_id, grant.grant_id); + assert!(prepare_resident_self_launch(&store, &policy, 5)?.is_none()); + let process = LaunchedCoordinator { + process_id: 44, + process_creation_token: 55, + process_executable_path: coordinator, + }; + claim_resident_self_preparation_as_child(&store, &prepared.preparation_id, &process, 6)?; + assert!( + claim_resident_self_preparation_as_child(&store, &prepared.preparation_id, &process, 6) + .is_err() + ); + let lease = + acknowledge_resident_self_launch(&store, &prepared.preparation_id, &process, 6)?; + assert_eq!(lease.grant_id, grant.grant_id); + assert!( + acknowledge_resident_self_launch(&store, &prepared.preparation_id, &process, 7) + .is_err() + ); + let receipt = crate::EpiphanyCoordinatorRunReceipt { + schema_version: crate::COORDINATOR_RUN_RECEIPT_SCHEMA_VERSION.into(), + receipt_id: "coordinator-terminal-1".into(), + session_id: "session-1".into(), + thread_id: lease.turn_id.clone(), + mode: "plan".into(), + status: "planned".into(), + final_action: "propose".into(), + final_reason: None, + step_count: 1, + created_at: "2026-07-18T00:00:00Z".into(), + model_provider: Some("local".into()), + runtime_store: policy.runtime_store.display().to_string(), + artifact_refs: vec![], + sealed_artifact_refs: vec![], + metadata: Default::default(), + resident_grant_id: Some(lease.grant_id.clone()), + resident_launch_digest: Some(lease.launch_digest.clone()), + resident_policy_digest: Some(lease.policy_digest.clone()), + resident_argv_digest: Some(lease.argv_digest.clone()), + resident_objective_digest: Some(lease.objective_digest.clone()), + resident_release_commit: Some(lease.release_commit.clone()), + resident_release_manifest_digest: Some(lease.release_manifest_digest.clone()), + resident_executable_digest: Some(lease.coordinator_executable_digest.clone()), + }; + let mut wrong = receipt.clone(); + wrong.resident_release_commit = Some("unwitnessed-release".into()); + assert!(complete_resident_self_turn(&store, &lease, &wrong, 8).is_err()); + let ack = complete_resident_self_turn(&store, &lease, &receipt, 9)?; + assert_eq!(ack.coordinator_receipt_id, receipt.receipt_id); + Ok(()) + } + + #[test] + fn standard_heartbeat_owns_self_grant_selection() -> Result<()> { + let temp = tempfile::tempdir()?; + let heartbeat_store = temp.path().join("heartbeat.cc"); + let resident_store = temp.path().join("resident.cc"); + let artifacts = temp.path().join("artifacts"); + crate::initialize_heartbeat_store(&heartbeat_store, 1.0)?; + enqueue_resident_self_pressure( + &resident_store, + &ResidentSelfPressure { + schema_version: RESIDENT_SELF_PRESSURE_SCHEMA_VERSION.into(), + pressure_id: "persona-pressure-1".into(), + kind: "persona-feedback".into(), + provenance_ref: "cultmesh://persona/feedback/1".into(), + objective: "Consider bounded feedback.".into(), + created_at_millis: 1, + status: "pending".into(), + consumed_by_grant_id: None, + private_state_exposed: false, + }, + )?; + let result = crate::tick_heartbeat_store( + &heartbeat_store, + &artifacts, + crate::HeartbeatTickOptions { + target_heartbeat_rate: 1.0, + coordinator_action: None, + target_role: None, + urgency: 0.0, + schedule_id: "heartbeat-self-1".into(), + source_scene_ref: "test/resident-self".into(), + defer_completion: false, + agent_store: None, + resident_self_store: Some(resident_store.clone()), + }, + )?; + assert_eq!(result["event"]["selectedRole"], "coordinator"); + assert_eq!(result["event"]["turnStatus"], "running"); + let grant = pending_resident_self_grant(&resident_store)?.expect("heartbeat grant"); + assert_eq!(grant.heartbeat_schedule_id, "heartbeat-self-1"); + assert_eq!(grant.pressure_kind, "persona-feedback"); + let ack = ResidentSelfTerminalAck { + schema_version: RESIDENT_SELF_ACK_SCHEMA_VERSION.into(), + ack_id: "ack-heartbeat-self-1".into(), + grant_id: grant.grant_id, + heartbeat_schedule_id: grant.heartbeat_schedule_id, + heartbeat_action_id: grant.heartbeat_action_id, + launch_digest: "sha256:launch".into(), + coordinator_receipt_id: "receipt-1".into(), + terminal_status: "planned".into(), + completed_at_millis: 2, + consumed_by_heartbeat_at_millis: None, + private_state_exposed: false, + }; + state_cache(&resident_store)?.put(&ack.ack_id, &ack)?; + crate::tick_heartbeat_store( + &heartbeat_store, + &artifacts, + crate::HeartbeatTickOptions { + target_heartbeat_rate: 1.0, + coordinator_action: None, + target_role: None, + urgency: 0.0, + schedule_id: "heartbeat-after-ack".into(), + source_scene_ref: "test/resident-self".into(), + defer_completion: false, + agent_store: None, + resident_self_store: Some(resident_store.clone()), + }, + )?; + let heartbeat = crate::load_heartbeat_state_entry(&heartbeat_store)?.expect("heartbeat"); + assert!( + heartbeat + .participants + .iter() + .find(|p| p.role_id == "coordinator") + .is_some_and(|p| p.pending_turn.is_none()) + ); + assert!( + state_cache(&resident_store)? + .get::(&ack.ack_id)? + .is_some_and(|ack| ack.consumed_by_heartbeat_at_millis.is_some()) + ); + Ok(()) + } +} diff --git a/epiphany-core/src/runtime_spine.rs b/epiphany-core/src/runtime_spine.rs index 8960d4a8..957f495d 100644 --- a/epiphany-core/src/runtime_spine.rs +++ b/epiphany-core/src/runtime_spine.rs @@ -603,6 +603,22 @@ pub struct EpiphanyCoordinatorRunReceipt { pub sealed_artifact_refs: Vec, #[cultcache(key = 14, default)] pub metadata: BTreeMap, + #[cultcache(key = 15, default)] + pub resident_grant_id: Option, + #[cultcache(key = 16, default)] + pub resident_launch_digest: Option, + #[cultcache(key = 17, default)] + pub resident_policy_digest: Option, + #[cultcache(key = 18, default)] + pub resident_argv_digest: Option, + #[cultcache(key = 19, default)] + pub resident_objective_digest: Option, + #[cultcache(key = 20, default)] + pub resident_release_commit: Option, + #[cultcache(key = 21, default)] + pub resident_release_manifest_digest: Option, + #[cultcache(key = 22, default)] + pub resident_executable_digest: Option, } #[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize)] @@ -6255,6 +6271,15 @@ pub fn put_coordinator_run_receipt( Ok(()) } +pub fn coordinator_run_receipts( + store_path: impl AsRef, +) -> Result> { + let mut cache = runtime_spine_cache(store_path)?; + cache.pull_all_backing_stores()?; + require_identity(&cache)?; + cache.get_all::() +} + pub fn complete_runtime_job( store_path: impl AsRef, options: RuntimeSpineJobResultOptions, @@ -10454,6 +10479,14 @@ pub(crate) mod tests { artifact_refs: vec!["coordinator-summary.json".to_string()], sealed_artifact_refs: vec!["epiphany-transcript.jsonl".to_string()], metadata: BTreeMap::new(), + resident_grant_id: None, + resident_launch_digest: None, + resident_policy_digest: None, + resident_argv_digest: None, + resident_objective_digest: None, + resident_release_commit: None, + resident_release_manifest_digest: None, + resident_executable_digest: None, }, )?; diff --git a/epiphany-openai-runtime/Cargo.lock b/epiphany-openai-runtime/Cargo.lock new file mode 100644 index 00000000..9cdb23c5 --- /dev/null +++ b/epiphany-openai-runtime/Cargo.lock @@ -0,0 +1,8092 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "Inflector" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" +dependencies = [ + "lazy_static", + "regex", +] + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aead" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" +dependencies = [ + "crypto-common 0.1.7", + "generic-array", +] + +[[package]] +name = "aes" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" +dependencies = [ + "cfg-if", + "cipher", + "cpufeatures 0.2.17", +] + +[[package]] +name = "aes-gcm" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "831010a0f742e1209b3bcea8fab6a8e149051ba6099432c8cb2cc117dec3ead1" +dependencies = [ + "aead", + "aes", + "cipher", + "ctr", + "ghash", + "subtle", +] + +[[package]] +name = "ahash" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +dependencies = [ + "cfg-if", + "getrandom 0.3.4", + "once_cell", + "version_check", + "zerocopy", +] + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "allocative" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fac2ce611db8b8cee9b2aa886ca03c924e9da5e5295d0dbd0526e5d0b0710f7" +dependencies = [ + "allocative_derive", + "bumpalo", + "ctor", + "hashbrown 0.14.5", + "num-bigint", +] + +[[package]] +name = "allocative_derive" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe233a377643e0fc1a56421d7c90acdec45c291b30345eb9f08e8d0ddce5a4ab" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "allocator-api2" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "annotate-snippets" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccaf7e9dfbb6ab22c82e473cd1a8a7bd313c19a5b7e40970f3d89ef5a5c9e81e" +dependencies = [ + "unicode-width", +] + +[[package]] +name = "anstream" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "anstyle-parse" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys 0.61.2", +] + +[[package]] +name = "anyhow" +version = "1.0.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" + +[[package]] +name = "ascii" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d92bec98840b8f03a5ff5413de5293bfcd8bf96467cf5452609f939ec6f5de16" + +[[package]] +name = "ascii-canvas" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8824ecca2e851cec16968d54a01dd372ef8f95b244fb84b84e70128be347c3c6" +dependencies = [ + "term", +] + +[[package]] +name = "asn1-rs" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56624a96882bb8c26d61312ae18cb45868e5a9992ea73c58e45c3101e56a1e60" +dependencies = [ + "asn1-rs-derive", + "asn1-rs-impl", + "displaydoc", + "nom 7.1.3", + "num-traits", + "rusticata-macros", + "thiserror 2.0.18", + "time", +] + +[[package]] +name = "asn1-rs-derive" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3109e49b1e4909e9db6515a30c633684d68cdeaa252f215214cb4fa1a5bfee2c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "asn1-rs-impl" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "async-broadcast" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532" +dependencies = [ + "event-listener", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-channel" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-fs" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8034a681df4aed8b8edbd7fbe472401ecf009251c8b40556b304567052e294c5" +dependencies = [ + "async-lock", + "blocking", + "futures-lite", +] + +[[package]] +name = "async-io" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc" +dependencies = [ + "autocfg", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-lock" +version = "3.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-process" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75" +dependencies = [ + "async-channel", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener", + "futures-lite", + "rustix", +] + +[[package]] +name = "async-recursion" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "async-signal" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix", + "signal-hook-registry", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + +[[package]] +name = "async-trait" +version = "0.1.89" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "asynk-strim" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52697735bdaac441a29391a9e97102c74c6ef0f9b60a40cf109b1b404e29d2f6" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[package]] +name = "aws-lc-rs" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ec2f1fc3ec205783a5da9a7e6c1509cc69dedf09a1949e412c1e18469326d00" +dependencies = [ + "aws-lc-sys", + "untrusted 0.7.1", + "zeroize", +] + +[[package]] +name = "aws-lc-sys" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a2f9779ce85b93ab6170dd940ad0169b5766ff848247aff13bb788b832fe3f4" +dependencies = [ + "cc", + "cmake", + "dunce", + "fs_extra", +] + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "base64ct" +version = "1.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" + +[[package]] +name = "beef" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a8241f3ebb85c056b509d4327ad0358fbbba6ffb340bf388f26350aeda225b1" + +[[package]] +name = "bit-set" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" +dependencies = [ + "bit-vec 0.6.3", +] + +[[package]] +name = "bit-vec" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" + +[[package]] +name = "bit-vec" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51" +dependencies = [ + "serde", +] + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3" + +[[package]] +name = "blake2" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block-buffer" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdd35008169921d80bc60d3d0ab416eecb028c4cd653352907921d95084790be" +dependencies = [ + "hybrid-array", +] + +[[package]] +name = "block-padding" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8894febbff9f758034a5b8e12d87918f56dfc64a8e1fe757d65e29041538d93" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2", +] + +[[package]] +name = "blocking" +version = "1.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e83f8d02be6967315521be875afa792a316e28d57b5a2d401897e2a7921b7f21" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "bm25" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cbd8ffdfb7b4c2ff038726178a780a94f90525ed0ad264c0afaa75dd8c18a64" +dependencies = [ + "cached", + "deunicode", + "fxhash", + "rust-stemmers", + "stop-words", + "unicode-segmentation", +] + +[[package]] +name = "borsh" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfd1e3f8955a5d7de9fab72fc8373fade9fb8a703968cb200ae3dc6cf08e185a" +dependencies = [ + "bytes", + "cfg_aliases 0.2.1", +] + +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "bstr" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "bumpalo" +version = "3.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" + +[[package]] +name = "bytemuck" +version = "1.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "byteorder-lite" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" + +[[package]] +name = "cached" +version = "0.56.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "801927ee168e17809ab8901d9f01f700cd7d8d6a6527997fee44e4b0327a253c" +dependencies = [ + "ahash", + "cached_proc_macro", + "cached_proc_macro_types", + "hashbrown 0.15.5", + "once_cell", + "thiserror 2.0.18", + "web-time", +] + +[[package]] +name = "cached_proc_macro" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9225bdcf4e4a9a4c08bf16607908eb2fbf746828d5e0b5e019726dbf6571f201" +dependencies = [ + "darling 0.20.11", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "cached_proc_macro_types" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ade8366b8bd5ba243f0a58f036cc0ca8a2f069cff1a2351ef1cac6b083e16fc0" + +[[package]] +name = "cbc" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26b52a9543ae338f279b96b0b9fed9c8093744685043739079ce85cd58f289a6" +dependencies = [ + "cipher", +] + +[[package]] +name = "cc" +version = "1.2.62" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98" +dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "cfg_aliases" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" + +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + +[[package]] +name = "chacha20" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f8d983286843e49675a4b7a2d174efe136dc93a18d69130dd18198a6c167601" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.0", + "rand_core 0.10.1", +] + +[[package]] +name = "chardetng" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14b8f0b65b7b08ae3c8187e8d77174de20cb6777864c6b832d8ad365999cf1ea" +dependencies = [ + "cfg-if", + "encoding_rs", + "memchr", +] + +[[package]] +name = "chrono" +version = "0.4.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "serde", + "wasm-bindgen", + "windows-link", +] + +[[package]] +name = "chunked_transfer" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e4de3bc4ea267985becf712dc6d9eed8b04c953b3fcfb339ebc87acd9804901" + +[[package]] +name = "cipher" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" +dependencies = [ + "crypto-common 0.1.7", + "inout", + "zeroize", +] + +[[package]] +name = "clap" +version = "4.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ddb117e43bbf7dacf0a4190fef4d345b9bad68dfc649cb349e7d17d28428e51" +dependencies = [ + "clap_builder", + "clap_derive", +] + +[[package]] +name = "clap_builder" +version = "4.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim 0.11.1", +] + +[[package]] +name = "clap_derive" +version = "4.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2ce8604710f6733aa641a2b3731eaa1e8b3d9973d5e3565da11800813f997a9" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "clap_lex" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" + +[[package]] +name = "clipboard-win" +version = "5.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bde03770d3df201d4fb868f2c9c59e66a3e4e2bd06692a0fe701e7103c7e84d4" +dependencies = [ + "error-code", +] + +[[package]] +name = "cmake" +version = "0.1.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678" +dependencies = [ + "cc", +] + +[[package]] +name = "cmov" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f88a43d011fc4a6876cb7344703e297c71dda42494fee094d5f7c76bf13f746" + +[[package]] +name = "cmp_any" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9b18233253483ce2f65329a24072ec414db782531bdbb7d0bbc4bd2ce6b7e21" + +[[package]] +name = "codex-agent-identity" +version = "0.0.0" +dependencies = [ + "anyhow", + "base64", + "chrono", + "codex-protocol", + "crypto_box", + "ed25519-dalek", + "rand 0.9.4", + "reqwest", + "serde", + "serde_json", + "sha2 0.10.9", +] + +[[package]] +name = "codex-api" +version = "0.0.0" +dependencies = [ + "async-channel", + "async-trait", + "base64", + "bytes", + "chrono", + "codex-client", + "codex-protocol", + "codex-utils-rustls-provider", + "eventsource-stream", + "futures", + "http", + "regex-lite", + "reqwest", + "serde", + "serde_json", + "thiserror 2.0.18", + "tokio", + "tokio-tungstenite", + "tokio-util", + "tracing", + "tungstenite", + "url", +] + +[[package]] +name = "codex-app-server-protocol" +version = "0.0.0" +dependencies = [ + "anyhow", + "clap", + "codex-experimental-api-macros", + "codex-protocol", + "codex-shell-command", + "codex-utils-absolute-path", + "inventory", + "rmcp", + "schemars 0.8.22", + "serde", + "serde_json", + "serde_with", + "strum_macros", + "thiserror 2.0.18", + "tracing", + "ts-rs", + "uuid", +] + +[[package]] +name = "codex-async-utils" +version = "0.0.0" +dependencies = [ + "async-trait", + "tokio", + "tokio-util", +] + +[[package]] +name = "codex-client" +version = "0.0.0" +dependencies = [ + "async-trait", + "bytes", + "codex-utils-rustls-provider", + "eventsource-stream", + "futures", + "http", + "opentelemetry", + "rand 0.9.4", + "reqwest", + "rustls", + "rustls-native-certs", + "rustls-pki-types", + "serde", + "serde_json", + "thiserror 2.0.18", + "tokio", + "tracing", + "tracing-opentelemetry", + "zstd", +] + +[[package]] +name = "codex-config" +version = "0.0.0" +dependencies = [ + "anyhow", + "async-trait", + "codex-app-server-protocol", + "codex-execpolicy", + "codex-features", + "codex-model-provider-info", + "codex-network-proxy", + "codex-protocol", + "codex-utils-absolute-path", + "codex-utils-path", + "dns-lookup", + "futures", + "gethostname", + "libc", + "multimap", + "schemars 0.8.22", + "serde", + "serde_json", + "serde_path_to_error", + "sha2 0.10.9", + "thiserror 2.0.18", + "tokio", + "toml", + "toml_edit 0.24.1+spec-1.1.0", + "tracing", + "wildmatch", + "winapi-util", +] + +[[package]] +name = "codex-execpolicy" +version = "0.0.0" +dependencies = [ + "anyhow", + "clap", + "codex-utils-absolute-path", + "multimap", + "serde", + "serde_json", + "shlex", + "starlark", + "thiserror 2.0.18", +] + +[[package]] +name = "codex-experimental-api-macros" +version = "0.0.0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "codex-features" +version = "0.0.0" +dependencies = [ + "codex-otel", + "codex-protocol", + "schemars 0.8.22", + "serde", + "toml", + "tracing", +] + +[[package]] +name = "codex-keyring-store" +version = "0.0.0" +dependencies = [ + "keyring", + "tracing", +] + +[[package]] +name = "codex-login" +version = "0.0.0" +dependencies = [ + "async-trait", + "base64", + "chrono", + "codex-agent-identity", + "codex-app-server-protocol", + "codex-client", + "codex-config", + "codex-keyring-store", + "codex-model-provider-info", + "codex-otel", + "codex-protocol", + "codex-terminal-detection", + "codex-utils-template", + "once_cell", + "os_info", + "rand 0.9.4", + "reqwest", + "serde", + "serde_json", + "sha2 0.10.9", + "thiserror 2.0.18", + "tiny_http", + "tokio", + "tracing", + "url", + "urlencoding", + "webbrowser", +] + +[[package]] +name = "codex-model-provider-info" +version = "0.0.0" +dependencies = [ + "codex-api", + "codex-app-server-protocol", + "codex-protocol", + "http", + "schemars 0.8.22", + "serde", +] + +[[package]] +name = "codex-network-proxy" +version = "0.0.0" +dependencies = [ + "anyhow", + "async-trait", + "chrono", + "clap", + "codex-utils-absolute-path", + "codex-utils-home-dir", + "codex-utils-rustls-provider", + "globset", + "rama-core", + "rama-http", + "rama-http-backend", + "rama-net", + "rama-socks5", + "rama-tcp", + "rama-tls-rustls", + "rama-unix", + "serde", + "serde_json", + "thiserror 2.0.18", + "time", + "tokio", + "tracing", + "url", +] + +[[package]] +name = "codex-otel" +version = "0.0.0" +dependencies = [ + "chrono", + "codex-api", + "codex-app-server-protocol", + "codex-protocol", + "codex-utils-absolute-path", + "codex-utils-string", + "eventsource-stream", + "gethostname", + "http", + "opentelemetry", + "opentelemetry-appender-tracing", + "opentelemetry-otlp", + "opentelemetry-semantic-conventions", + "opentelemetry_sdk", + "os_info", + "reqwest", + "serde", + "serde_json", + "strum_macros", + "thiserror 2.0.18", + "tokio", + "tokio-tungstenite", + "tracing", + "tracing-opentelemetry", + "tracing-subscriber", +] + +[[package]] +name = "codex-protocol" +version = "0.0.0" +dependencies = [ + "chardetng", + "chrono", + "codex-async-utils", + "codex-execpolicy", + "codex-network-proxy", + "codex-utils-absolute-path", + "codex-utils-image", + "codex-utils-string", + "codex-utils-template", + "encoding_rs", + "globset", + "icu_decimal", + "icu_locale_core", + "icu_provider", + "landlock", + "quick-xml", + "reqwest", + "schemars 0.8.22", + "seccompiler", + "serde", + "serde_json", + "serde_with", + "strum", + "strum_macros", + "sys-locale", + "thiserror 2.0.18", + "tokio", + "tracing", + "ts-rs", + "uuid", +] + +[[package]] +name = "codex-shell-command" +version = "0.0.0" +dependencies = [ + "base64", + "codex-protocol", + "codex-utils-absolute-path", + "once_cell", + "regex", + "serde", + "serde_json", + "shlex", + "tree-sitter", + "tree-sitter-bash", + "url", + "which", +] + +[[package]] +name = "codex-terminal-detection" +version = "0.0.0" +dependencies = [ + "tracing", +] + +[[package]] +name = "codex-utils-absolute-path" +version = "0.0.0" +dependencies = [ + "dirs", + "dunce", + "schemars 0.8.22", + "serde", + "ts-rs", +] + +[[package]] +name = "codex-utils-cache" +version = "0.0.0" +dependencies = [ + "lru", + "sha1", + "tokio", +] + +[[package]] +name = "codex-utils-home-dir" +version = "0.0.0" +dependencies = [ + "codex-utils-absolute-path", + "dirs", +] + +[[package]] +name = "codex-utils-image" +version = "0.0.0" +dependencies = [ + "base64", + "codex-utils-cache", + "image", + "mime_guess", + "thiserror 2.0.18", + "tokio", +] + +[[package]] +name = "codex-utils-path" +version = "0.0.0" +dependencies = [ + "codex-utils-absolute-path", + "dunce", + "tempfile", +] + +[[package]] +name = "codex-utils-rustls-provider" +version = "0.0.0" +dependencies = [ + "rustls", +] + +[[package]] +name = "codex-utils-string" +version = "0.0.0" +dependencies = [ + "regex-lite", +] + +[[package]] +name = "codex-utils-template" +version = "0.0.0" + +[[package]] +name = "color_quant" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" + +[[package]] +name = "colorchoice" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "const-hex" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20d9a563d167a9cce0f94153382b33cb6eded6dfabff03c69ad65a28ea1514e0" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "proptest", + "serde_core", +] + +[[package]] +name = "const-oid" +version = "0.9.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" + +[[package]] +name = "const-oid" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c" + +[[package]] +name = "const_format" +version = "0.2.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4481a617ad9a412be3b97c5d403fef8ed023103368908b9c50af598ff467cc1e" +dependencies = [ + "const_format_proc_macros", + "konst", +] + +[[package]] +name = "const_format_proc_macros" +version = "0.2.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d57c2eccfb16dbac1f4e61e206105db5820c9d26c3c472bc17c774259ef7744" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + +[[package]] +name = "convert_case" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "cookie" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747" +dependencies = [ + "percent-encoding", + "time", + "version_check", +] + +[[package]] +name = "cookie_store" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15b2c103cf610ec6cae3da84a766285b42fd16aad564758459e6ecf128c75206" +dependencies = [ + "cookie", + "document-features", + "idna", + "log", + "publicsuffix", + "serde", + "serde_derive", + "serde_json", + "time", + "url", +] + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "critical-section" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b" + +[[package]] +name = "crossbeam-channel" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "rand_core 0.6.4", + "typenum", +] + +[[package]] +name = "crypto-common" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77727bb15fa921304124b128af125e7e3b968275d1b108b379190264f4423710" +dependencies = [ + "hybrid-array", +] + +[[package]] +name = "crypto_box" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16182b4f39a82ec8a6851155cc4c0cda3065bb1db33651726a29e1951de0f009" +dependencies = [ + "aead", + "blake2", + "crypto_secretbox", + "curve25519-dalek", + "salsa20", + "subtle", + "zeroize", +] + +[[package]] +name = "crypto_secretbox" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d6cf87adf719ddf43a805e92c6870a531aedda35ff640442cbaf8674e141e1" +dependencies = [ + "aead", + "cipher", + "generic-array", + "poly1305", + "salsa20", + "subtle", + "zeroize", +] + +[[package]] +name = "csv" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52cd9d68cf7efc6ddfaaee42e7288d3a99d613d4b50f76ce9827ae0c6e14f938" +dependencies = [ + "csv-core", + "itoa", + "ryu", + "serde_core", +] + +[[package]] +name = "csv-core" +version = "0.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "704a3c26996a80471189265814dbc2c257598b96b8a7feae2d31ace646bb9782" +dependencies = [ + "memchr", +] + +[[package]] +name = "ctor" +version = "0.1.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d2301688392eb071b0bf1a37be05c469d3cc4dbbd95df672fe28ab021e6a096" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ctr" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" +dependencies = [ + "cipher", +] + +[[package]] +name = "ctutils" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e" +dependencies = [ + "cmov", +] + +[[package]] +name = "cultcache-rs" +version = "0.1.0" +dependencies = [ + "anyhow", + "chrono", + "cultcache-rs-derive", + "fs2", + "redb", + "rmp-serde", + "serde", + "serde_bytes", + "serde_json", + "uuid", + "windows-sys 0.59.0", +] + +[[package]] +name = "cultcache-rs-derive" +version = "0.1.0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "cultmesh-rs" +version = "0.1.0" +dependencies = [ + "anyhow", + "cultcache-rs", + "cultnet-rs", + "serde", +] + +[[package]] +name = "cultnet-rs" +version = "0.1.0" +dependencies = [ + "aes-gcm", + "anyhow", + "base64", + "chrono", + "cultcache-rs", + "hmac 0.12.1", + "rand 0.9.4", + "rmp-serde", + "rmpv", + "serde", + "serde_bytes", + "serde_json", + "sha2 0.10.9", + "socket2 0.5.10", + "uuid", +] + +[[package]] +name = "curve25519-dalek" +version = "4.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "curve25519-dalek-derive", + "digest 0.10.7", + "fiat-crypto", + "rustc_version", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "darling" +version = "0.20.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee" +dependencies = [ + "darling_core 0.20.11", + "darling_macro 0.20.11", +] + +[[package]] +name = "darling" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d" +dependencies = [ + "darling_core 0.23.0", + "darling_macro 0.23.0", +] + +[[package]] +name = "darling_core" +version = "0.20.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim 0.11.1", + "syn 2.0.117", +] + +[[package]] +name = "darling_core" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0" +dependencies = [ + "ident_case", + "proc-macro2", + "quote", + "strsim 0.11.1", + "syn 2.0.117", +] + +[[package]] +name = "darling_macro" +version = "0.20.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead" +dependencies = [ + "darling_core 0.20.11", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "darling_macro" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" +dependencies = [ + "darling_core 0.23.0", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "data-encoding" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4ae5f15dda3c708c0ade84bfee31ccab44a3da4f88015ed22f63732abe300c8" + +[[package]] +name = "dbus" +version = "0.9.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b942602992bb7acfd1f51c49811c58a610ef9181b6e66f3e519d79b540a3bf73" +dependencies = [ + "libc", + "libdbus-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "dbus-secret-service" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "708b509edf7889e53d7efb0ffadd994cc6c2345ccb62f55cfd6b0682165e4fa6" +dependencies = [ + "aes", + "block-padding", + "cbc", + "dbus", + "fastrand", + "hkdf", + "num", + "once_cell", + "sha2 0.10.9", + "zeroize", +] + +[[package]] +name = "debugserver-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bf6834a70ed14e8e4e41882df27190bea150f1f6ecf461f1033f8739cd8af4a" +dependencies = [ + "schemafy", + "serde", + "serde_json", +] + +[[package]] +name = "der" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb" +dependencies = [ + "const-oid 0.9.6", + "zeroize", +] + +[[package]] +name = "der-parser" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07da5016415d5a3c4dd39b11ed26f915f52fc4e0dc197d87908bc916e51bc1a6" +dependencies = [ + "asn1-rs", + "displaydoc", + "nom 7.1.3", + "num-bigint", + "num-traits", + "rusticata-macros", +] + +[[package]] +name = "deranged" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +dependencies = [ + "powerfmt", + "serde_core", +] + +[[package]] +name = "derivative" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "derive_more" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a9b99b9cbbe49445b21764dc0625032a89b145a2642e67603e1c936f5458d05" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" +dependencies = [ + "convert_case", + "proc-macro2", + "quote", + "syn 2.0.117", + "unicode-xid", +] + +[[package]] +name = "deunicode" +version = "1.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abd57806937c9cc163efc8ea3910e00a62e2aeb0b8119f1793a978088f8f6b04" + +[[package]] +name = "diff" +version = "0.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8" + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer 0.10.4", + "crypto-common 0.1.7", + "subtle", +] + +[[package]] +name = "digest" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" +dependencies = [ + "block-buffer 0.12.0", + "const-oid 0.10.2", + "crypto-common 0.2.1", + "ctutils", +] + +[[package]] +name = "dirs" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-next" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1" +dependencies = [ + "cfg-if", + "dirs-sys-next", +] + +[[package]] +name = "dirs-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" +dependencies = [ + "libc", + "option-ext", + "redox_users 0.5.2", + "windows-sys 0.61.2", +] + +[[package]] +name = "dirs-sys-next" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" +dependencies = [ + "libc", + "redox_users 0.4.6", + "winapi", +] + +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags 2.11.1", + "objc2", +] + +[[package]] +name = "display_container" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a110a75c96bedec8e65823dea00a1d710288b7a369d95fd8a0f5127639466fa" +dependencies = [ + "either", + "indenter", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "dns-lookup" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e39034cee21a2f5bbb66ba0e3689819c4bb5d00382a282006e802a7ffa6c41d" +dependencies = [ + "cfg-if", + "libc", + "socket2 0.6.3", + "windows-sys 0.60.2", +] + +[[package]] +name = "document-features" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61" +dependencies = [ + "litrs", +] + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "dupe" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ed2bc011db9c93fbc2b6cdb341a53737a55bafb46dbb74cf6764fc33a2fbf9c" +dependencies = [ + "dupe_derive", +] + +[[package]] +name = "dupe_derive" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83e195b4945e88836d826124af44fdcb262ec01ef94d44f14f4fb5103f19892a" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "dyn-clone" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" + +[[package]] +name = "ed25519" +version = "2.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" +dependencies = [ + "pkcs8", + "signature", +] + +[[package]] +name = "ed25519-dalek" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9" +dependencies = [ + "curve25519-dalek", + "ed25519", + "serde", + "sha2 0.10.9", + "subtle", + "zeroize", +] + +[[package]] +name = "either" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" + +[[package]] +name = "ena" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eabffdaee24bd1bf95c5ef7cec31260444317e72ea56c4c91750e8b7ee58d5f1" +dependencies = [ + "log", +] + +[[package]] +name = "encoding_rs" +version = "0.8.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "endi" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "endian-type" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" + +[[package]] +name = "endian-type" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "869b0adbda23651a9c5c0c3d270aac9fcb52e8622a8f2b17e57802d7791962f2" + +[[package]] +name = "enum-as-inner" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1e6a265c649f3f5979b601d26f1d05ada116434c87741c9493cb56218f76cbc" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "enumflags2" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef" +dependencies = [ + "enumflags2_derive", + "serde", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "epiphany-core" +version = "0.1.0" +dependencies = [ + "anyhow", + "bm25", + "chrono", + "cultcache-rs", + "cultmesh-rs", + "cultnet-rs", + "ed25519-dalek", + "epiphany-model-adapter", + "epiphany-openai-adapter", + "epiphany-state-model", + "epiphany-tool-adapter", + "ignore", + "libc", + "postgres", + "rand_core 0.6.4", + "reqwest", + "rmp-serde", + "serde", + "serde_json", + "sha1", + "sha2 0.10.9", + "toml", + "tracing", + "uuid", + "windows-sys 0.59.0", + "zeroize", +] + +[[package]] +name = "epiphany-model-adapter" +version = "0.1.0" +dependencies = [ + "cultcache-rs", + "serde", +] + +[[package]] +name = "epiphany-openai-adapter" +version = "0.1.0" +dependencies = [ + "cultcache-rs", + "serde", +] + +[[package]] +name = "epiphany-openai-auth-spine" +version = "0.1.0" +dependencies = [ + "codex-login", + "serde_json", +] + +[[package]] +name = "epiphany-openai-codex-spine" +version = "0.1.0" +dependencies = [ + "anyhow", + "codex-client", + "epiphany-openai-adapter", + "epiphany-openai-auth-spine", + "futures", + "http", + "serde", + "serde_json", + "tokio", +] + +[[package]] +name = "epiphany-openai-runtime" +version = "0.1.0" +dependencies = [ + "anyhow", + "chrono", + "epiphany-core", + "epiphany-model-adapter", + "epiphany-openai-adapter", + "epiphany-openai-codex-spine", + "epiphany-tool-adapter", + "rmp-serde", + "serde", + "serde_json", + "sha2 0.10.9", + "tempfile", + "tokio", + "uuid", +] + +[[package]] +name = "epiphany-state-model" +version = "0.1.0" +dependencies = [ + "schemars 0.8.22", + "serde", + "ts-rs", +] + +[[package]] +name = "epiphany-tool-adapter" +version = "0.1.0" +dependencies = [ + "cultcache-rs", + "serde", +] + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "erased-serde" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c138974f9d5e7fe373eb04df7cae98833802ae4b11c24ac7039a21d5af4b26c" +dependencies = [ + "serde", +] + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "error-code" +version = "3.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dea2df4cf52843e0452895c455a1a2cfbb842a1e7329671acf418fdc53ed4c59" + +[[package]] +name = "event-listener" +version = "5.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener", + "pin-project-lite", +] + +[[package]] +name = "eventsource-stream" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74fef4569247a5f429d9156b9d0a2599914385dd189c539334c625d8099d90ab" +dependencies = [ + "futures-core", + "nom 7.1.3", + "pin-project-lite", +] + +[[package]] +name = "fallible-iterator" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" + +[[package]] +name = "fastrand" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6" +dependencies = [ + "getrandom 0.3.4", +] + +[[package]] +name = "fd-lock" +version = "4.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ce92ff622d6dadf7349484f42c93271a0d49b7cc4d466a936405bacbe10aa78" +dependencies = [ + "cfg-if", + "rustix", + "windows-sys 0.59.0", +] + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "fiat-crypto" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "fixed_decimal" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79c3c892f121fff406e5dd6b28c1b30096b95111c30701a899d4f2b18da6d1bd" +dependencies = [ + "displaydoc", + "smallvec", + "writeable", +] + +[[package]] +name = "fixedbitset" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" + +[[package]] +name = "flate2" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" +dependencies = [ + "crc32fast", + "libz-sys", + "miniz_oxide", +] + +[[package]] +name = "flume" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e139bc46ca777eb5efaf62df0ab8cc5fd400866427e56c68b22e414e53bd3be" +dependencies = [ + "fastrand", + "futures-core", + "futures-sink", + "spin", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "fs2" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213" +dependencies = [ + "libc", + "winapi", +] + +[[package]] +name = "fs_extra" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + +[[package]] +name = "futures" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-executor" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" + +[[package]] +name = "futures-lite" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-macro" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "futures-sink" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" + +[[package]] +name = "futures-task" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + +[[package]] +name = "futures-util" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "fxhash" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" +dependencies = [ + "byteorder", +] + +[[package]] +name = "generator" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52f04ae4152da20c76fe800fa48659201d5cf627c5149ca0b707b69d7eef6cf9" +dependencies = [ + "cc", + "cfg-if", + "libc", + "log", + "rustversion", + "windows-link", + "windows-result", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", + "zeroize", +] + +[[package]] +name = "gethostname" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8" +dependencies = [ + "rustix", + "windows-link", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi 0.11.1+wasi-snapshot-preview1", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi 5.3.0", + "wasip2", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", + "rand_core 0.10.1", + "wasip2", + "wasip3", +] + +[[package]] +name = "ghash" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0d8a4362ccb29cb0b265253fb0a2728f592895ee6854fd9bc13f2ffda266ff1" +dependencies = [ + "opaque-debug", + "polyval", +] + +[[package]] +name = "gif" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee8cfcc411d9adbbaba82fb72661cc1bcca13e8bba98b364e62b2dba8f960159" +dependencies = [ + "color_quant", + "weezl", +] + +[[package]] +name = "globset" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52dfc19153a48bde0cbd630453615c8151bce3a5adfac7a0aebfbf0a1e1f57e3" +dependencies = [ + "aho-corasick", + "bstr", + "log", + "regex-automata", + "regex-syntax 0.8.10", +] + +[[package]] +name = "h2" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "171fefbc92fe4a4de27e0698d6a5b392d6a0e333506bc49133760b3bcf948733" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http", + "indexmap 2.14.0", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" +dependencies = [ + "ahash", + "allocator-api2", +] + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash 0.1.5", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash 0.2.0", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "headers" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3314d5adb5d94bcdf56771f2e50dbbc80bb4bdf88967526706205ac9eff24eb" +dependencies = [ + "base64", + "bytes", + "headers-core", + "http", + "httpdate", + "mime", + "sha1", +] + +[[package]] +name = "headers-core" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54b4a22553d4242c49fddb9ba998a99962b5cc6f22cb5a3482bec22522403ce4" +dependencies = [ + "http", +] + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hermit-abi" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hickory-proto" +version = "0.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8a6fe56c0038198998a6f217ca4e7ef3a5e51f46163bd6dd60b5c71ca6c6502" +dependencies = [ + "async-trait", + "cfg-if", + "data-encoding", + "enum-as-inner", + "futures-channel", + "futures-io", + "futures-util", + "idna", + "ipnet", + "once_cell", + "rand 0.9.4", + "ring", + "thiserror 2.0.18", + "tinyvec", + "tokio", + "tracing", + "url", +] + +[[package]] +name = "hickory-resolver" +version = "0.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc62a9a99b0bfb44d2ab95a7208ac952d31060efc16241c87eaf36406fecf87a" +dependencies = [ + "cfg-if", + "futures-util", + "hickory-proto", + "ipconfig", + "moka", + "once_cell", + "parking_lot", + "rand 0.9.4", + "resolv-conf", + "smallvec", + "thiserror 2.0.18", + "tokio", + "tracing", +] + +[[package]] +name = "hkdf" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" +dependencies = [ + "hmac 0.12.1", +] + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "hmac" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6303bc9732ae41b04cb554b844a762b4115a61bfaa81e3e83050991eeb56863f" +dependencies = [ + "digest 0.11.3", +] + +[[package]] +name = "home" +version = "0.5.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "http-range-header" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9171a2ea8a68358193d15dd5d70c1c10a2afc3e7e4c5bc92bc9f025cebd7359c" + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + +[[package]] +name = "hybrid-array" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9155a582abd142abc056962c29e3ce5ff2ad5469f4246b537ed42c5deba857da" +dependencies = [ + "typenum", +] + +[[package]] +name = "hyper" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6299f016b246a94207e63da54dbe807655bf9e00044f73ded42c3ac5305fbcca" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "h2", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f" +dependencies = [ + "http", + "hyper", + "hyper-util", + "rustls", + "rustls-native-certs", + "tokio", + "tokio-rustls", + "tower-service", + "webpki-roots", +] + +[[package]] +name = "hyper-timeout" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0" +dependencies = [ + "hyper", + "hyper-util", + "pin-project-lite", + "tokio", + "tower-service", +] + +[[package]] +name = "hyper-tls" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" +dependencies = [ + "bytes", + "http-body-util", + "hyper", + "hyper-util", + "native-tls", + "tokio", + "tokio-native-tls", + "tower-service", +] + +[[package]] +name = "hyper-util" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +dependencies = [ + "base64", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2 0.6.3", + "system-configuration", + "tokio", + "tower-service", + "tracing", + "windows-registry", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "icu_collections" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_decimal" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "288247df2e32aa776ac54fdd64de552149ac43cb840f2761811f0e8d09719dd4" +dependencies = [ + "displaydoc", + "fixed_decimal", + "icu_decimal_data", + "icu_locale", + "icu_locale_core", + "icu_plurals", + "icu_provider", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_decimal_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f14a5ca9e8af29eef62064f269078424283d90dbaffeac5225addf62aaabc22" + +[[package]] +name = "icu_locale" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5a396343c7208121dc86e35623d3dfe19814a7613cfd14964994cdc9c9a2e26" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_locale_data", + "icu_provider", + "potential_utf", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29" +dependencies = [ + "displaydoc", + "litemap", + "serde", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locale_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5fdcc9ac77c6d74ff5cf6e65ef3181d6af32003b16fce3a77fb451d2f695993" + +[[package]] +name = "icu_normalizer" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38" + +[[package]] +name = "icu_plurals" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a50023f1d49ad5c4333380328a0d4a19e4b9d6d842ec06639affd5ba47c8103" +dependencies = [ + "fixed_decimal", + "icu_locale", + "icu_plurals_data", + "icu_provider", + "zerovec", +] + +[[package]] +name = "icu_plurals_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8485497155dc865f901decb93ecc20d3e467df67bfeceb91e3ba34e2b11e8e1d" + +[[package]] +name = "icu_properties" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14" + +[[package]] +name = "icu_provider" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421" +dependencies = [ + "displaydoc", + "icu_locale_core", + "serde", + "stable_deref_trait", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "ignore" +version = "0.4.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3d782a365a015e0f5c04902246139249abf769125006fbe7649e2ee88169b4a" +dependencies = [ + "crossbeam-deque", + "globset", + "log", + "memchr", + "regex-automata", + "same-file", + "walkdir", + "winapi-util", +] + +[[package]] +name = "image" +version = "0.25.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104" +dependencies = [ + "bytemuck", + "byteorder-lite", + "color_quant", + "gif", + "image-webp", + "moxcms", + "num-traits", + "png", + "zune-core", + "zune-jpeg", +] + +[[package]] +name = "image-webp" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "525e9ff3e1a4be2fbea1fdf0e98686a6d98b4d8f937e1bf7402245af1909e8c3" +dependencies = [ + "byteorder-lite", + "quick-error", +] + +[[package]] +name = "indenter" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "964de6e86d545b246d84badc0fef527924ace5134f30641c203ef52ba83f58d5" + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", + "serde", + "serde_core", +] + +[[package]] +name = "inout" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" +dependencies = [ + "block-padding", + "generic-array", +] + +[[package]] +name = "inventory" +version = "0.3.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4f0c30c76f2f4ccee3fe55a2435f691ca00c0e4bd87abe4f4a851b1d4dac39b" +dependencies = [ + "rustversion", +] + +[[package]] +name = "ipconfig" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d40460c0ce33d6ce4b0630ad68ff63d6661961c48b6dba35e5a4d81cfb48222" +dependencies = [ + "socket2 0.6.3", + "widestring", + "windows-registry", + "windows-result", + "windows-sys 0.61.2", +] + +[[package]] +name = "ipnet" +version = "2.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" + +[[package]] +name = "iri-string" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25e659a4bb38e810ebc252e53b5814ff908a8c58c2a9ce2fae1bbec24cbf4e20" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "is-terminal" +version = "0.4.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46" +dependencies = [ + "hermit-abi", + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "itertools" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +dependencies = [ + "either", +] + +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + +[[package]] +name = "itertools" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "jni" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498" +dependencies = [ + "cfg-if", + "combine", + "jni-macros", + "jni-sys", + "log", + "simd_cesu8", + "thiserror 2.0.18", + "walkdir", + "windows-link", +] + +[[package]] +name = "jni-macros" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "simd_cesu8", + "syn 2.0.117", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.117", +] + +[[package]] +name = "jobserver" +version = "0.1.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33" +dependencies = [ + "getrandom 0.3.4", + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.98" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67df7112613f8bfd9150013a0314e196f4800d3201ae742489d999db2f979f08" +dependencies = [ + "cfg-if", + "futures-util", + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "keyring" +version = "3.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eebcc3aff044e5944a8fbaf69eb277d11986064cba30c468730e8b9909fb551c" +dependencies = [ + "byteorder", + "dbus-secret-service", + "linux-keyutils", + "log", + "secret-service", + "security-framework 2.11.1", + "security-framework 3.7.0", + "windows-sys 0.60.2", + "zbus", + "zeroize", +] + +[[package]] +name = "konst" +version = "0.2.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "128133ed7824fcd73d6e7b17957c5eb7bacb885649bd8c69708b2331a10bcefb" +dependencies = [ + "konst_macro_rules", +] + +[[package]] +name = "konst_macro_rules" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4933f3f57a8e9d9da04db23fb153356ecaf00cbd14aee46279c33dc80925c37" + +[[package]] +name = "lalrpop" +version = "0.19.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a1cbf952127589f2851ab2046af368fd20645491bb4b376f04b7f94d7a9837b" +dependencies = [ + "ascii-canvas", + "bit-set", + "diff", + "ena", + "is-terminal", + "itertools 0.10.5", + "lalrpop-util", + "petgraph", + "regex", + "regex-syntax 0.6.29", + "string_cache", + "term", + "tiny-keccak", + "unicode-xid", +] + +[[package]] +name = "lalrpop-util" +version = "0.19.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3c48237b9604c5a4702de6b824e02006c3214327564636aef27c1028a8fa0ed" +dependencies = [ + "regex", +] + +[[package]] +name = "landlock" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49fefd6652c57d68aaa32544a4c0e642929725bdc1fd929367cdeb673ab81088" +dependencies = [ + "enumflags2", + "libc", + "thiserror 2.0.18", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + +[[package]] +name = "libc" +version = "0.2.186" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" + +[[package]] +name = "libdbus-sys" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043" +dependencies = [ + "pkg-config", +] + +[[package]] +name = "libredox" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e02f3bb43d335493c96bf3fd3a321600bf6bd07ed34bc64118e9293bdffea46c" +dependencies = [ + "libc", +] + +[[package]] +name = "libz-sys" +version = "1.1.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc3a226e576f50782b3305c5ccf458698f92798987f551c6a02efe8276721e22" +dependencies = [ + "cc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "linux-keyutils" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83270a18e9f90d0707c41e9f35efada77b64c0e6f3f1810e71c8368a864d5590" +dependencies = [ + "bitflags 2.11.1", + "libc", +] + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" + +[[package]] +name = "litrs" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "logos" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf8b031682c67a8e3d5446840f9573eb7fe26efe7ec8d195c9ac4c0647c502f1" +dependencies = [ + "logos-derive", +] + +[[package]] +name = "logos-derive" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1d849148dbaf9661a6151d1ca82b13bb4c4c128146a88d05253b38d4e2f496c" +dependencies = [ + "beef", + "fnv", + "proc-macro2", + "quote", + "regex-syntax 0.6.29", + "syn 1.0.109", +] + +[[package]] +name = "loom" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "419e0dc8046cb947daa77eb95ae174acfbddb7673b4151f56d1eed8e93fbfaca" +dependencies = [ + "cfg-if", + "generator", + "pin-utils", + "scoped-tls", + "serde", + "serde_json", + "tracing", + "tracing-subscriber", +] + +[[package]] +name = "lru" +version = "0.16.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f66e8d5d03f609abc3a39e6f08e4164ebf1447a732906d39eb9b99b7919ef39" +dependencies = [ + "hashbrown 0.16.1", +] + +[[package]] +name = "lru-slab" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" + +[[package]] +name = "lsp-types" +version = "0.94.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c66bfd44a06ae10647fe3f8214762e9369fd4248df1350924b4ef9e770a85ea1" +dependencies = [ + "bitflags 1.3.2", + "serde", + "serde_json", + "serde_repr", + "url", +] + +[[package]] +name = "maplit" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d" + +[[package]] +name = "matchers" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" +dependencies = [ + "regex-automata", +] + +[[package]] +name = "matchit" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8863b587001c1b9a8a4e36008cebc6b3612cb1226fe2de94858e06092687b608" + +[[package]] +name = "md-5" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69b6441f590336821bb897fb28fc622898ccceb1d6cea3fde5ea86b090c4de98" +dependencies = [ + "cfg-if", + "digest 0.11.3", +] + +[[package]] +name = "md5" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae960838283323069879657ca3de837e9f7bbb4c7bf6ea7f1b290d5e9476d2e0" + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[package]] +name = "memoffset" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" +dependencies = [ + "autocfg", +] + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "mime_guess" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +dependencies = [ + "mime", + "unicase", +] + +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1" +dependencies = [ + "libc", + "wasi 0.11.1+wasi-snapshot-preview1", + "windows-sys 0.61.2", +] + +[[package]] +name = "moka" +version = "0.12.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "957228ad12042ee839f93c8f257b62b4c0ab5eaae1d4fa60de53b27c9d7c5046" +dependencies = [ + "crossbeam-channel", + "crossbeam-epoch", + "crossbeam-utils", + "equivalent", + "parking_lot", + "portable-atomic", + "smallvec", + "tagptr", + "uuid", +] + +[[package]] +name = "moxcms" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b" +dependencies = [ + "num-traits", + "pxfm", +] + +[[package]] +name = "multimap" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d87ecb2933e8aeadb3e3a02b828fed80a7528047e68b4f424523a0981a3a084" +dependencies = [ + "serde", +] + +[[package]] +name = "native-tls" +version = "0.2.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2" +dependencies = [ + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework 3.7.0", + "security-framework-sys", + "tempfile", +] + +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "nibble_vec" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77a5d83df9f36fe23f0c3648c6bbb8b0298bb5f1939c8f2704431371f4b84d43" +dependencies = [ + "smallvec", +] + +[[package]] +name = "nix" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4" +dependencies = [ + "bitflags 2.11.1", + "cfg-if", + "cfg_aliases 0.1.1", + "libc", +] + +[[package]] +name = "nix" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" +dependencies = [ + "bitflags 2.11.1", + "cfg-if", + "cfg_aliases 0.2.1", + "libc", + "memoffset 0.9.1", +] + +[[package]] +name = "nix" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74523f3a35e05aba87a1d978330aef40f67b0304ac79c1c00b294c9830543db6" +dependencies = [ + "bitflags 2.11.1", + "cfg-if", + "cfg_aliases 0.2.1", + "libc", +] + +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + +[[package]] +name = "nom" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405" +dependencies = [ + "memchr", +] + +[[package]] +name = "nu-ansi-term" +version = "0.50.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "num" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23" +dependencies = [ + "num-bigint", + "num-complex", + "num-integer", + "num-iter", + "num-rational", + "num-traits", +] + +[[package]] +name = "num-bigint" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-complex" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-conv" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6673768db2d862beb9b39a78fdcb1a69439615d5794a1be50caa9bc92c81967" + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-iter" +version = "0.1.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824" +dependencies = [ + "num-bigint", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "objc2" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f" +dependencies = [ + "objc2-encode", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" +dependencies = [ + "bitflags 2.11.1", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-data" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags 2.11.1", + "dispatch2", + "objc2", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags 2.11.1", + "dispatch2", + "objc2", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[package]] +name = "objc2-core-image" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-location" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-text" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" +dependencies = [ + "bitflags 2.11.1", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.11.1", + "block2", + "libc", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags 2.11.1", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f" +dependencies = [ + "bitflags 2.11.1", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-system-configuration" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7216bd11cbda54ccabcab84d523dc93b858ec75ecfb3a7d89513fa22464da396" +dependencies = [ + "objc2-core-foundation", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22" +dependencies = [ + "bitflags 2.11.1", + "block2", + "objc2", + "objc2-cloud-kit", + "objc2-core-data", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-core-image", + "objc2-core-location", + "objc2-core-text", + "objc2-foundation", + "objc2-quartz-core", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "oid-registry" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12f40cff3dde1b6087cc5d5f5d4d65712f34016a03ed60e9c08dcc392736b5b7" +dependencies = [ + "asn1-rs", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" +dependencies = [ + "critical-section", + "portable-atomic", +] + +[[package]] +name = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + +[[package]] +name = "opaque-debug" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" + +[[package]] +name = "openssl" +version = "0.10.79" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf0b434746ee2832f4f0baf10137e1cabb18cbe6912c69e2e33263c45250f542" +dependencies = [ + "bitflags 2.11.1", + "cfg-if", + "foreign-types", + "libc", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "openssl-probe" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" + +[[package]] +name = "openssl-sys" +version = "0.9.115" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "158fe5b292746440aa6e7a7e690e55aeb72d41505e2804c23c6973ad0e9c9781" +dependencies = [ + "cc", + "libc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "opentelemetry" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b84bcd6ae87133e903af7ef497404dda70c60d0ea14895fc8a5e6722754fc2a0" +dependencies = [ + "futures-core", + "futures-sink", + "js-sys", + "pin-project-lite", + "thiserror 2.0.18", + "tracing", +] + +[[package]] +name = "opentelemetry-appender-tracing" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef6a1ac5ca3accf562b8c306fa8483c85f4390f768185ab775f242f7fe8fdcc2" +dependencies = [ + "opentelemetry", + "tracing", + "tracing-core", + "tracing-subscriber", +] + +[[package]] +name = "opentelemetry-http" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7a6d09a73194e6b66df7c8f1b680f156d916a1a942abf2de06823dd02b7855d" +dependencies = [ + "async-trait", + "bytes", + "http", + "opentelemetry", + "reqwest", +] + +[[package]] +name = "opentelemetry-otlp" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f69cd6acbb9af919df949cd1ec9e5e7fdc2ef15d234b6b795aaa525cc02f71f" +dependencies = [ + "http", + "opentelemetry", + "opentelemetry-http", + "opentelemetry-proto", + "opentelemetry_sdk", + "prost", + "reqwest", + "serde_json", + "thiserror 2.0.18", + "tokio", + "tonic", + "tracing", +] + +[[package]] +name = "opentelemetry-proto" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7175df06de5eaee9909d4805a3d07e28bb752c34cab57fa9cff549da596b30f" +dependencies = [ + "base64", + "const-hex", + "opentelemetry", + "opentelemetry_sdk", + "prost", + "serde", + "serde_json", + "tonic", + "tonic-prost", +] + +[[package]] +name = "opentelemetry-semantic-conventions" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e62e29dfe041afb8ed2a6c9737ab57db4907285d999ef8ad3a59092a36bdc846" + +[[package]] +name = "opentelemetry_sdk" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e14ae4f5991976fd48df6d843de219ca6d31b01daaab2dad5af2badeded372bd" +dependencies = [ + "futures-channel", + "futures-executor", + "futures-util", + "opentelemetry", + "percent-encoding", + "rand 0.9.4", + "thiserror 2.0.18", + "tokio", + "tokio-stream", +] + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "ordered-stream" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "os_info" +version = "3.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4022a17595a00d6a369236fdae483f0de7f0a339960a53118b818238e132224" +dependencies = [ + "android_system_properties", + "log", + "nix 0.30.1", + "objc2", + "objc2-foundation", + "objc2-ui-kit", + "serde", + "windows-sys 0.61.2", +] + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "pastey" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5a797f0e07bdf071d15742978fc3128ec6c22891c31a3a931513263904c982a" + +[[package]] +name = "pem" +version = "3.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d30c53c26bc5b31a98cd02d20f25a7c8567146caf63ed593a9d87b2775291be" +dependencies = [ + "base64", + "serde_core", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "petgraph" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" +dependencies = [ + "fixedbitset", + "indexmap 2.14.0", +] + +[[package]] +name = "phf" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" +dependencies = [ + "phf_shared 0.13.1", + "serde", +] + +[[package]] +name = "phf_shared" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" +dependencies = [ + "siphasher", +] + +[[package]] +name = "phf_shared" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "piper" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "pkcs8" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" +dependencies = [ + "der", + "spki", +] + +[[package]] +name = "pkg-config" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e" + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.11.1", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[package]] +name = "polling" +version = "3.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218" +dependencies = [ + "cfg-if", + "concurrent-queue", + "hermit-abi", + "pin-project-lite", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "poly1305" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8159bd90725d2df49889a078b54f4f79e87f1f8a8444194cdca81d38f5393abf" +dependencies = [ + "cpufeatures 0.2.17", + "opaque-debug", + "universal-hash", +] + +[[package]] +name = "polyval" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1fe60d06143b2430aa532c94cfe9e29783047f06c0d7fd359a9a51b729fa25" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "opaque-debug", + "universal-hash", +] + +[[package]] +name = "portable-atomic" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49" + +[[package]] +name = "postgres" +version = "0.19.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aacf632d0554ff75f58183694f41dc8999c8a3a43a386994d0ec2d034f1dfbe1" +dependencies = [ + "bytes", + "fallible-iterator", + "futures-util", + "log", + "tokio", + "tokio-postgres", +] + +[[package]] +name = "postgres-protocol" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56201207dac53e2f38e848e31b4b91616a6bb6e0c7205b77718994a7f49e70fc" +dependencies = [ + "base64", + "byteorder", + "bytes", + "fallible-iterator", + "hmac 0.13.0", + "md-5", + "memchr", + "rand 0.10.1", + "sha2 0.11.0", + "stringprep", +] + +[[package]] +name = "postgres-types" +version = "0.2.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dc729a129e682e8d24170cd30ae1aa01b336b096cbb56df6d534ffec133d186" +dependencies = [ + "bytes", + "fallible-iterator", + "postgres-protocol", +] + +[[package]] +name = "potential_utf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564" +dependencies = [ + "serde_core", + "writeable", + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn 2.0.117", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit 0.25.11+spec-1.1.0", +] + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "proptest" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b45fcc2344c680f5025fe57779faef368840d0bd1f42f216291f0dc4ace4744" +dependencies = [ + "bitflags 2.11.1", + "num-traits", + "rand 0.9.4", + "rand_chacha 0.9.0", + "rand_xorshift", + "regex-syntax 0.8.10", + "unarray", +] + +[[package]] +name = "prost" +version = "0.14.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2ea70524a2f82d518bce41317d0fae74151505651af45faf1ffbd6fd33f0568" +dependencies = [ + "bytes", + "prost-derive", +] + +[[package]] +name = "prost-derive" +version = "0.14.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27c6023962132f4b30eb4c172c91ce92d933da334c59c23cddee82358ddafb0b" +dependencies = [ + "anyhow", + "itertools 0.14.0", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "psl" +version = "2.1.210" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27fbd4d9b2eb0b6e0cbd654bce70243f460cbc8dc92df6747e3fb911ce1cd4a8" +dependencies = [ + "psl-types", +] + +[[package]] +name = "psl-types" +version = "2.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33cb294fe86a74cbcf50d4445b37da762029549ebeea341421c7c70370f86cac" + +[[package]] +name = "publicsuffix" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f42ea446cab60335f76979ec15e12619a2165b5ae2c12166bef27d283a9fadf" +dependencies = [ + "idna", + "psl-types", +] + +[[package]] +name = "pxfm" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0c5ccf5294c6ccd63a74f1565028353830a9c2f5eb0c682c355c471726a6e3f" + +[[package]] +name = "quick-error" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" + +[[package]] +name = "quick-xml" +version = "0.38.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66c2058c55a409d601666cffe35f04333cf1013010882cec174a7467cd4e21c" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "quinn" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20" +dependencies = [ + "bytes", + "cfg_aliases 0.2.1", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls", + "socket2 0.6.3", + "thiserror 2.0.18", + "tokio", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-proto" +version = "0.11.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "434b42fec591c96ef50e21e886936e66d3cc3f737104fdb9b737c40ffb94c098" +dependencies = [ + "bytes", + "getrandom 0.3.4", + "lru-slab", + "rand 0.9.4", + "ring", + "rustc-hash", + "rustls", + "rustls-pki-types", + "slab", + "thiserror 2.0.18", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd" +dependencies = [ + "cfg_aliases 0.2.1", + "libc", + "once_cell", + "socket2 0.6.3", + "tracing", + "windows-sys 0.60.2", +] + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "radix_trie" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c069c179fcdc6a2fe24d8d18305cf085fdbd4f922c041943e203685d6a1c58fd" +dependencies = [ + "endian-type 0.1.2", + "nibble_vec", +] + +[[package]] +name = "radix_trie" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b4431027dcd37fc2a73ef740b5f233aa805897935b8bce0195e41bbf9a3289a" +dependencies = [ + "endian-type 0.2.0", + "nibble_vec", +] + +[[package]] +name = "rama-core" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b93751ab27c9d151e84c1100057eab3f2a6a1378bc31b62abd416ecb1847658" +dependencies = [ + "ahash", + "asynk-strim", + "bytes", + "futures", + "parking_lot", + "pin-project-lite", + "rama-error", + "rama-macros", + "rama-utils", + "serde", + "serde_json", + "tokio", + "tokio-graceful", + "tokio-util", + "tracing", +] + +[[package]] +name = "rama-dns" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e340fef2799277e204260b17af01bc23604712092eacd6defe40167f304baed8" +dependencies = [ + "ahash", + "hickory-resolver", + "rama-core", + "rama-net", + "rama-utils", + "serde", + "tokio", +] + +[[package]] +name = "rama-error" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c452aba1beb7e29b873ff32f304536164cffcc596e786921aea64e858ff8f40" + +[[package]] +name = "rama-http" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "453d60af031e23af2d48995e41b17023f6150044738680508b63671f8d7417dd" +dependencies = [ + "ahash", + "base64", + "bitflags 2.11.1", + "chrono", + "const_format", + "csv", + "http", + "http-range-header", + "httpdate", + "iri-string", + "matchit", + "parking_lot", + "percent-encoding", + "pin-project-lite", + "radix_trie 0.3.0", + "rama-core", + "rama-error", + "rama-http-headers", + "rama-http-types", + "rama-net", + "rama-utils", + "rand 0.9.4", + "serde", + "serde_html_form", + "serde_json", + "tokio", + "uuid", +] + +[[package]] +name = "rama-http-backend" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3ff6a3c8ae690be8167e43777ba0bf6b0c8c2f6de165c538666affe2a32fd81" +dependencies = [ + "h2", + "pin-project-lite", + "rama-core", + "rama-http", + "rama-http-core", + "rama-http-headers", + "rama-http-types", + "rama-net", + "rama-tcp", + "rama-unix", + "rama-utils", + "tokio", +] + +[[package]] +name = "rama-http-core" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3822be6703e010afec0bcfeb5dbb6e5a3b23ca5689d9b1215b66ce6446653b77" +dependencies = [ + "ahash", + "atomic-waker", + "futures-channel", + "httparse", + "httpdate", + "indexmap 2.14.0", + "itoa", + "parking_lot", + "pin-project-lite", + "rama-core", + "rama-http", + "rama-http-types", + "rama-utils", + "slab", + "tokio", + "tokio-test", + "want", +] + +[[package]] +name = "rama-http-headers" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d74fe0cd9bd4440827dc6dc0f504cf66065396532e798891dee2c1b740b2285" +dependencies = [ + "ahash", + "base64", + "chrono", + "const_format", + "httpdate", + "rama-core", + "rama-error", + "rama-http-types", + "rama-macros", + "rama-net", + "rama-utils", + "rand 0.9.4", + "serde", + "sha1", +] + +[[package]] +name = "rama-http-types" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6dae655a72da5f2b97cfacb67960d8b28c5025e62707b4c8c5f0c5c9843a444" +dependencies = [ + "ahash", + "bytes", + "const_format", + "fnv", + "http", + "http-body", + "http-body-util", + "itoa", + "memchr", + "mime", + "mime_guess", + "nom 8.0.0", + "pin-project-lite", + "rama-core", + "rama-error", + "rama-macros", + "rama-utils", + "rand 0.9.4", + "serde", + "serde_json", + "sync_wrapper", + "tokio", +] + +[[package]] +name = "rama-macros" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea18a110bcf21e35c5f194168e6914ccea45ffdd0fea51bc4b169fbeafef6428" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "rama-net" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b28ee9e1e5d39264414b71f5c33e7fbb66b382c3fac456fe0daad39cf5509933" +dependencies = [ + "ahash", + "const_format", + "flume", + "hex", + "ipnet", + "itertools 0.14.0", + "md5", + "nom 8.0.0", + "parking_lot", + "pin-project-lite", + "psl", + "radix_trie 0.3.0", + "rama-core", + "rama-http-types", + "rama-macros", + "rama-utils", + "serde", + "sha2 0.10.9", + "socket2 0.6.3", + "tokio", +] + +[[package]] +name = "rama-socks5" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5468b263516daaf258de32542c1974b7cbe962363ad913dcb669f5d46db0ef3e" +dependencies = [ + "byteorder", + "rama-core", + "rama-net", + "rama-tcp", + "rama-udp", + "rama-utils", + "tokio", +] + +[[package]] +name = "rama-tcp" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe60cd604f91196b3659a1b28945add2e8b10bd0b4e6373c93d024fb3197704b" +dependencies = [ + "pin-project-lite", + "rama-core", + "rama-dns", + "rama-http-types", + "rama-net", + "rama-utils", + "rand 0.9.4", + "tokio", +] + +[[package]] +name = "rama-tls-rustls" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "536d47f6b269fb20dffd45e4c04aa8b340698b3509326e3c36e444b4f33ce0d6" +dependencies = [ + "pin-project-lite", + "rama-core", + "rama-http-types", + "rama-net", + "rama-utils", + "rcgen", + "rustls", + "rustls-native-certs", + "rustls-pki-types", + "tokio", + "tokio-rustls", + "webpki-roots", + "x509-parser", +] + +[[package]] +name = "rama-udp" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36ed05e0ecac73e084e92a3a8b1fbf16fdae8958c506f0f0eada180a2d99eef4" +dependencies = [ + "rama-core", + "rama-net", + "tokio", + "tokio-util", +] + +[[package]] +name = "rama-unix" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91acb16d571428ba4cece072dfab90d2667cdfa910a7b3cb4530c3f31542d708" +dependencies = [ + "pin-project-lite", + "rama-core", + "rama-net", + "tokio", +] + +[[package]] +name = "rama-utils" +version = "0.3.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf28b18ba4a57f8334d7992d3f8020194ea359b246ae6f8f98b8df524c7a14ef" +dependencies = [ + "const_format", + "parking_lot", + "pin-project-lite", + "rama-macros", + "regex", + "serde", + "smallvec", + "smol_str", + "tokio", + "wildcard", +] + +[[package]] +name = "rand" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca0ecfa931c29007047d1bc58e623ab12e5590e8c7cc53200d5202b69266d8a" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44c5af06bb1b7d3216d91932aed5265164bf384dc89cd6ba05cf59a35f5f76ea" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.5", +] + +[[package]] +name = "rand" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2e8e8bcc7961af1fdac401278c6a831614941f6164ee3bf4ce61b7edb162207" +dependencies = [ + "chacha20", + "getrandom 0.4.2", + "rand_core 0.10.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.5", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", +] + +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + +[[package]] +name = "rand_xorshift" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a" +dependencies = [ + "rand_core 0.9.5", +] + +[[package]] +name = "rcgen" +version = "0.14.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57f6d249aad744e274e682777a50283a225a32705394ee6d5fcc01efa25e4055" +dependencies = [ + "aws-lc-rs", + "pem", + "rustls-pki-types", + "time", + "x509-parser", + "yasna", +] + +[[package]] +name = "redb" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e925444704b5f17d32bf42f5b6e2df050bceebc3dcd6e71cc73dafe8092e839" +dependencies = [ + "libc", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.11.1", +] + +[[package]] +name = "redox_users" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 1.0.69", +] + +[[package]] +name = "redox_users" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 2.0.18", +] + +[[package]] +name = "ref-cast" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "regex" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax 0.8.10", +] + +[[package]] +name = "regex-automata" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax 0.8.10", +] + +[[package]] +name = "regex-lite" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cab834c73d247e67f4fae452806d17d3c7501756d98c8808d7c9c7aa7d18f973" + +[[package]] +name = "regex-syntax" +version = "0.6.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" + +[[package]] +name = "regex-syntax" +version = "0.8.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" + +[[package]] +name = "reqwest" +version = "0.12.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147" +dependencies = [ + "base64", + "bytes", + "cookie", + "cookie_store", + "encoding_rs", + "futures-channel", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-tls", + "hyper-util", + "js-sys", + "log", + "mime", + "native-tls", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls", + "rustls-native-certs", + "rustls-pki-types", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-native-tls", + "tokio-rustls", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", + "webpki-roots", +] + +[[package]] +name = "resolv-conf" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e061d1b48cb8d38042de4ae0a7a6401009d6143dc80d2e2d6f31f0bdd6470c7" + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted 0.9.0", + "windows-sys 0.52.0", +] + +[[package]] +name = "rmcp" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bef41ebc9ebed2c1b1d90203e9d1756091e8a00bbc3107676151f39868ca0ee" +dependencies = [ + "async-trait", + "base64", + "chrono", + "futures", + "pastey", + "pin-project-lite", + "rmcp-macros", + "schemars 1.2.1", + "serde", + "serde_json", + "thiserror 2.0.18", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "rmcp-macros" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e88ad84b8b6237a934534a62b379a5be6388915663c0cc598ceb9b3292bbbfe" +dependencies = [ + "darling 0.23.0", + "proc-macro2", + "quote", + "serde_json", + "syn 2.0.117", +] + +[[package]] +name = "rmp" +version = "0.8.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ba8be72d372b2c9b35542551678538b562e7cf86c3315773cae48dfbfe7790c" +dependencies = [ + "num-traits", +] + +[[package]] +name = "rmp-serde" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f81bee8c8ef9b577d1681a70ebbc962c232461e397b22c208c43c04b67a155" +dependencies = [ + "rmp", + "serde", +] + +[[package]] +name = "rmpv" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a4e1d4b9b938a26d2996af33229f0ca0956c652c1375067f0b45291c1df8417" +dependencies = [ + "rmp", + "serde", + "serde_bytes", +] + +[[package]] +name = "rust-stemmers" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e46a2036019fdb888131db7a4c847a1063a7493f971ed94ea82c67eada63ca54" +dependencies = [ + "serde", + "serde_derive", +] + +[[package]] +name = "rustc-hash" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rusticata-macros" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632" +dependencies = [ + "nom 7.1.3", +] + +[[package]] +name = "rustix" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +dependencies = [ + "bitflags 2.11.1", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls" +version = "0.23.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef86cd5876211988985292b91c96a8f2d298df24e75989a43a3c73f2d4d8168b" +dependencies = [ + "aws-lc-rs", + "log", + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-native-certs" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "612460d5f7bea540c490b2b6395d8e34a953e52b491accd6c86c8164c5932a63" +dependencies = [ + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework 3.7.0", +] + +[[package]] +name = "rustls-pki-types" +version = "1.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30a7197ae7eb376e574fe940d068c30fe0462554a3ddbe4eca7838e049c937a9" +dependencies = [ + "web-time", + "zeroize", +] + +[[package]] +name = "rustls-webpki" +version = "0.103.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e" +dependencies = [ + "aws-lc-rs", + "ring", + "rustls-pki-types", + "untrusted 0.9.0", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "rustyline" +version = "14.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7803e8936da37efd9b6d4478277f4b2b9bb5cdb37a113e8d63222e58da647e63" +dependencies = [ + "bitflags 2.11.1", + "cfg-if", + "clipboard-win", + "fd-lock", + "home", + "libc", + "log", + "memchr", + "nix 0.28.0", + "radix_trie 0.2.1", + "unicode-segmentation", + "unicode-width", + "utf8parse", + "windows-sys 0.52.0", +] + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[package]] +name = "salsa20" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97a22f5af31f73a954c10289c93e8a50cc23d971e80ee446f1f6f7137a088213" +dependencies = [ + "cipher", +] + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schannel" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "schemafy" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8aea5ba40287dae331f2c48b64dbc8138541f5e97ee8793caa7948c1f31d86d5" +dependencies = [ + "Inflector", + "schemafy_core", + "schemafy_lib", + "serde", + "serde_derive", + "serde_json", + "serde_repr", + "syn 1.0.109", +] + +[[package]] +name = "schemafy_core" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41781ae092f4fd52c9287efb74456aea0d3b90032d2ecad272bd14dbbcb0511b" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "schemafy_lib" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e953db32579999ca98c451d80801b6f6a7ecba6127196c5387ec0774c528befa" +dependencies = [ + "Inflector", + "proc-macro2", + "quote", + "schemafy_core", + "serde", + "serde_derive", + "serde_json", + "syn 1.0.109", +] + +[[package]] +name = "schemars" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615" +dependencies = [ + "dyn-clone", + "schemars_derive 0.8.22", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc" +dependencies = [ + "chrono", + "dyn-clone", + "ref-cast", + "schemars_derive 1.2.1", + "serde", + "serde_json", +] + +[[package]] +name = "schemars_derive" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 2.0.117", +] + +[[package]] +name = "schemars_derive" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d115b50f4aaeea07e79c1912f645c7513d81715d0420f8bc77a18c6260b307f" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 2.0.117", +] + +[[package]] +name = "scoped-tls" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "seccompiler" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4ae55de56877481d112a559bbc12667635fdaf5e005712fd4e2b2fa50ffc884" +dependencies = [ + "libc", +] + +[[package]] +name = "secret-service" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4d35ad99a181be0a60ffcbe85d680d98f87bdc4d7644ade319b87076b9dbfd4" +dependencies = [ + "aes", + "cbc", + "futures-util", + "generic-array", + "hkdf", + "num", + "once_cell", + "rand 0.8.6", + "serde", + "sha2 0.10.9", + "zbus", +] + +[[package]] +name = "security-framework" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" +dependencies = [ + "bitflags 2.11.1", + "core-foundation 0.9.4", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags 2.11.1", + "core-foundation 0.10.1", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_bytes" +version = "0.11.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5d440709e79d88e51ac01c4b72fc6cb7314017bb7da9eeff678aa94c10e3ea8" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serde_derive_internals" +version = "0.29.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serde_html_form" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2acf96b1d9364968fce46ebb548f1c0e1d7eceae27bdff73865d42e6c7369d94" +dependencies = [ + "form_urlencoded", + "indexmap 2.14.0", + "itoa", + "ryu", + "serde_core", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "indexmap 2.14.0", + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_path_to_error" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457" +dependencies = [ + "itoa", + "serde", + "serde_core", +] + +[[package]] +name = "serde_repr" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serde_spanned" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "serde_with" +version = "3.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e72c1c2cb7b223fafb600a619537a871c2818583d619401b785e7c0b746ccde2" +dependencies = [ + "base64", + "bs58", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.14.0", + "schemars 0.9.0", + "schemars 1.2.1", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b90c488738ecb4fb0262f41f43bc40efc5868d9fb744319ddf5f5317f417bfac" +dependencies = [ + "darling 0.23.0", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "sha1" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "digest 0.10.7", +] + +[[package]] +name = "sha1_smol" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbfa15b3dddfee50a0fff136974b3e1bde555604ba463834a7eb7deb6417705d" + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "digest 0.10.7", +] + +[[package]] +name = "sha2" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "446ba717509524cb3f22f17ecc096f10f4822d76ab5c0b9822c5f9c284e825f4" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.0", + "digest 0.11.3", +] + +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "signature" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" +dependencies = [ + "rand_core 0.6.4", +] + +[[package]] +name = "simd-adler32" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214" + +[[package]] +name = "simd_cesu8" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94f90157bb87cddf702797c5dadfa0be7d266cdf49e22da2fcaa32eff75b2c33" +dependencies = [ + "rustc_version", + "simdutf8", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + +[[package]] +name = "siphasher" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" +dependencies = [ + "serde", +] + +[[package]] +name = "smol_str" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4aaa7368fcf4852a4c2dd92df0cace6a71f2091ca0a23391ce7f3a31833f1523" +dependencies = [ + "borsh", + "serde_core", +] + +[[package]] +name = "socket2" +version = "0.5.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + +[[package]] +name = "socket2" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "spin" +version = "0.9.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" +dependencies = [ + "lock_api", +] + +[[package]] +name = "spki" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" +dependencies = [ + "base64ct", + "der", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "starlark" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f53849859f05d9db705b221bd92eede93877fd426c1b4a3c3061403a5912a8f" +dependencies = [ + "allocative", + "anyhow", + "bumpalo", + "cmp_any", + "debugserver-types", + "derivative", + "derive_more", + "display_container", + "dupe", + "either", + "erased-serde", + "hashbrown 0.14.5", + "inventory", + "itertools 0.13.0", + "maplit", + "memoffset 0.6.5", + "num-bigint", + "num-traits", + "once_cell", + "paste", + "ref-cast", + "regex", + "rustyline", + "serde", + "serde_json", + "starlark_derive", + "starlark_map", + "starlark_syntax", + "static_assertions", + "strsim 0.10.0", + "textwrap", + "thiserror 1.0.69", +] + +[[package]] +name = "starlark_derive" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe58bc6c8b7980a1fe4c9f8f48200c3212db42ebfe21ae6a0336385ab53f082a" +dependencies = [ + "dupe", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "starlark_map" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92659970f120df0cc1c0bb220b33587b7a9a90e80d4eecc5c5af5debb950173d" +dependencies = [ + "allocative", + "dupe", + "equivalent", + "fxhash", + "hashbrown 0.14.5", + "serde", +] + +[[package]] +name = "starlark_syntax" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe53b3690d776aafd7cb6b9fed62d94f83280e3b87d88e3719cc0024638461b3" +dependencies = [ + "allocative", + "annotate-snippets", + "anyhow", + "derivative", + "derive_more", + "dupe", + "lalrpop", + "lalrpop-util", + "logos", + "lsp-types", + "memchr", + "num-bigint", + "num-traits", + "once_cell", + "starlark_map", + "thiserror 1.0.69", +] + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "stop-words" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "645a3d441ccf4bf47f2e4b7681461986681a6eeea9937d4c3bc9febd61d17c71" +dependencies = [ + "serde_json", +] + +[[package]] +name = "streaming-iterator" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b2231b7c3057d5e4ad0156fb3dc807d900806020c5ffa3ee6ff2c8c76fb8520" + +[[package]] +name = "string_cache" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf776ba3fa74f83bf4b63c3dcbbf82173db2632ed8452cb2d891d33f459de70f" +dependencies = [ + "new_debug_unreachable", + "parking_lot", + "phf_shared 0.11.3", + "precomputed-hash", +] + +[[package]] +name = "stringprep" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b4df3d392d81bd458a8a621b8bffbd2302a12ffe288a9d931670948749463b1" +dependencies = [ + "unicode-bidi", + "unicode-normalization", + "unicode-properties", +] + +[[package]] +name = "strsim" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "strum" +version = "0.27.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af23d6f6c1a224baef9d3f61e287d2761385a5b88fdab4eb4c6f11aeb54c4bcf" + +[[package]] +name = "strum_macros" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab85eea0270ee17587ed4156089e10b9e6880ee688791d45a905f5b1ca36f664" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "sys-locale" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eab9a99a024a169fe8a903cf9d4a3b3601109bcc13bd9e3c6fff259138626c4" +dependencies = [ + "libc", +] + +[[package]] +name = "system-configuration" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b" +dependencies = [ + "bitflags 2.11.1", + "core-foundation 0.9.4", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "tagptr" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b2093cf4c8eb1e67749a6762251bc9cd836b6fc171623bd0a9d324d37af2417" + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.2", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "term" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c59df8ac95d96ff9bede18eb7300b0fda5e5d8d90960e76f8e14ae765eedbf1f" +dependencies = [ + "dirs-next", + "rustversion", + "winapi", +] + +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "textwrap" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" +dependencies = [ + "unicode-width", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl 2.0.18", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "thread_local" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "time" +version = "0.3.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + +[[package]] +name = "time-macros" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tiny-keccak" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" +dependencies = [ + "crunchy", +] + +[[package]] +name = "tiny_http" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389915df6413a2e74fb181895f933386023c71110878cd0825588928e64cdc82" +dependencies = [ + "ascii", + "chunked_transfer", + "httpdate", + "log", +] + +[[package]] +name = "tinystr" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d" +dependencies = [ + "displaydoc", + "serde_core", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.52.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe" +dependencies = [ + "bytes", + "libc", + "mio", + "parking_lot", + "pin-project-lite", + "signal-hook-registry", + "socket2 0.6.3", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-graceful" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45740b38b48641855471cd402922e89156bdfbd97b69b45eeff170369cc18c7d" +dependencies = [ + "loom", + "pin-project-lite", + "slab", + "tokio", + "tracing", +] + +[[package]] +name = "tokio-macros" +version = "2.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "tokio-native-tls" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" +dependencies = [ + "native-tls", + "tokio", +] + +[[package]] +name = "tokio-postgres" +version = "0.7.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dd8df5ef180f6364759a6f00f7aadda4fbbac86cdee37480826a6ff9f3574ce" +dependencies = [ + "async-trait", + "byteorder", + "bytes", + "fallible-iterator", + "futures-channel", + "futures-util", + "log", + "parking_lot", + "percent-encoding", + "phf", + "pin-project-lite", + "postgres-protocol", + "postgres-types", + "rand 0.10.1", + "socket2 0.6.3", + "tokio", + "tokio-util", + "whoami", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "tokio-stream" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32da49809aab5c3bc678af03902d4ccddea2a87d028d86392a4b1560c6906c70" +dependencies = [ + "futures-core", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tokio-test" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f6d24790a10a7af737693a3e8f1d03faef7e6ca0cc99aae5066f533766de545" +dependencies = [ + "futures-core", + "tokio", + "tokio-stream", +] + +[[package]] +name = "tokio-tungstenite" +version = "0.28.0" +source = "git+https://github.com/openai-oss-forks/tokio-tungstenite?rev=132f5b39c862e3a970f731d709608b3e6276d5f6#132f5b39c862e3a970f731d709608b3e6276d5f6" +dependencies = [ + "futures-util", + "log", + "rustls", + "rustls-native-certs", + "rustls-pki-types", + "tokio", + "tokio-rustls", + "tungstenite", +] + +[[package]] +name = "tokio-util" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "0.9.12+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863" +dependencies = [ + "indexmap 2.14.0", + "serde_core", + "serde_spanned", + "toml_datetime 0.7.5+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 0.7.15", +] + +[[package]] +name = "toml_datetime" +version = "0.7.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_datetime" +version = "1.1.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.24.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01f2eadbbc6b377a847be05f60791ef1058d9f696ecb51d2c07fe911d8569d8e" +dependencies = [ + "indexmap 2.14.0", + "toml_datetime 0.7.5+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 0.7.15", +] + +[[package]] +name = "toml_edit" +version = "0.25.11+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b59c4d22ed448339746c59b905d24568fcbb3ab65a500494f7b8c3e97739f2b" +dependencies = [ + "indexmap 2.14.0", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "winnow 1.0.3", +] + +[[package]] +name = "toml_parser" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526" +dependencies = [ + "winnow 1.0.3", +] + +[[package]] +name = "toml_writer" +version = "1.1.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db" + +[[package]] +name = "tonic" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac2a5518c70fa84342385732db33fb3f44bc4cc748936eb5833d2df34d6445ef" +dependencies = [ + "async-trait", + "base64", + "bytes", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-timeout", + "hyper-util", + "percent-encoding", + "pin-project", + "rustls-native-certs", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tokio-stream", + "tower", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tonic-prost" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50849f68853be452acf590cde0b146665b8d507b3b8af17261df47e02c209ea0" +dependencies = [ + "bytes", + "prost", + "tonic", +] + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "indexmap 2.14.0", + "pin-project-lite", + "slab", + "sync_wrapper", + "tokio", + "tokio-util", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-http" +version = "0.6.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68d6fdd9f81c2819c9a8b0e0cd91660e7746a8e6ea2ba7c6b2b057985f6bcb51" +dependencies = [ + "bitflags 2.11.1", + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", + "url", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", + "valuable", +] + +[[package]] +name = "tracing-log" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + +[[package]] +name = "tracing-opentelemetry" +version = "0.32.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ac28f2d093c6c477eaa76b23525478f38de514fa9aeb1285738d4b97a9552fc" +dependencies = [ + "js-sys", + "opentelemetry", + "smallvec", + "tracing", + "tracing-core", + "tracing-log", + "tracing-subscriber", + "web-time", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" +dependencies = [ + "matchers", + "nu-ansi-term", + "once_cell", + "regex-automata", + "sharded-slab", + "smallvec", + "thread_local", + "tracing", + "tracing-core", + "tracing-log", +] + +[[package]] +name = "tree-sitter" +version = "0.25.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78f873475d258561b06f1c595d93308a7ed124d9977cb26b148c2084a4a3cc87" +dependencies = [ + "cc", + "regex", + "regex-syntax 0.8.10", + "serde_json", + "streaming-iterator", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-bash" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e5ec769279cc91b561d3df0d8a5deb26b0ad40d183127f409494d6d8fc53062" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-language" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "009994f150cc0cd50ff54917d5bc8bffe8cad10ca10d81c34da2ec421ae61782" + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "ts-rs" +version = "11.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4994acea2522cd2b3b85c1d9529a55991e3ad5e25cdcd3de9d505972c4379424" +dependencies = [ + "serde_json", + "thiserror 2.0.18", + "ts-rs-macros", + "uuid", +] + +[[package]] +name = "ts-rs-macros" +version = "11.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6ff59666c9cbaec3533964505d39154dc4e0a56151fdea30a09ed0301f62e2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "termcolor", +] + +[[package]] +name = "tungstenite" +version = "0.27.0" +source = "git+https://github.com/openai-oss-forks/tungstenite-rs?rev=9200079d3b54a1ff51072e24d81fd354f085156f#9200079d3b54a1ff51072e24d81fd354f085156f" +dependencies = [ + "bytes", + "data-encoding", + "flate2", + "headers", + "http", + "httparse", + "log", + "rand 0.9.4", + "rustls", + "rustls-pki-types", + "sha1", + "thiserror 2.0.18", + "utf-8", +] + +[[package]] +name = "typenum" +version = "1.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40ce102ab67701b8526c123c1bab5cbe42d7040ccfd0f64af1a385808d2f43de" + +[[package]] +name = "uds_windows" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" +dependencies = [ + "memoffset 0.9.1", + "tempfile", + "windows-sys 0.61.2", +] + +[[package]] +name = "unarray" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" + +[[package]] +name = "unicase" +version = "2.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142" + +[[package]] +name = "unicode-bidi" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unicode-normalization" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fd4f6878c9cb28d874b009da9e8d183b5abc80117c40bbd187a1fde336be6e8" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "unicode-properties" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7df058c713841ad818f1dc5d3fd88063241cc61f49f5fbea4b951e8cf5a8d71d" + +[[package]] +name = "unicode-segmentation" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c" + +[[package]] +name = "unicode-width" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "universal-hash" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" +dependencies = [ + "crypto-common 0.1.7", + "subtle", +] + +[[package]] +name = "untrusted" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", + "serde_derive", +] + +[[package]] +name = "urlencoding" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "uuid" +version = "1.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd74a9687298c6858e9b88ec8935ec45d22e8fd5e6394fa1bd4e99a87789c76" +dependencies = [ + "getrandom 0.4.2", + "js-sys", + "serde_core", + "sha1_smol", + "wasm-bindgen", +] + +[[package]] +name = "valuable" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasi" +version = "0.14.7+wasi-0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "883478de20367e224c0090af9cf5f9fa85bed63a95c1abf3afc5c083ebc06e8c" +dependencies = [ + "wasip2", +] + +[[package]] +name = "wasip2" +version = "1.0.3+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6" +dependencies = [ + "wit-bindgen 0.57.1", +] + +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen 0.51.0", +] + +[[package]] +name = "wasite" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66fe902b4a6b8028a753d5424909b764ccf79b7a209eac9bf97e59cda9f71a42" +dependencies = [ + "wasi 0.14.7+wasi-0.2.4", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49ace1d07c165b0864824eee619580c4689389afa9dc9ed3a4c75040d82e6790" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.71" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96492d0d3ffba25305a7dc88720d250b1401d7edca02cc3bcd50633b424673b8" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e68e6f4afd367a562002c05637acb8578ff2dea1943df76afb9e83d177c8578" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d95a9ec35c64b2a7cb35d3fead40c4238d0940c86d107136999567a4703259f2" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.117", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4e0100b01e9f0d03189a92b96772a1fb998639d981193d7dbab487302513441" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap 2.14.0", + "wasm-encoder", + "wasmparser", +] + +[[package]] +name = "wasm-streams" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" +dependencies = [ + "bitflags 2.11.1", + "hashbrown 0.15.5", + "indexmap 2.14.0", + "semver", +] + +[[package]] +name = "web-sys" +version = "0.3.98" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b572dff8bcf38bad0fa19729c89bb5748b2b9b1d8be70cf90df697e3a8f32aa" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webbrowser" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fc95580916af1e68ff6a7be07446fc5db73ebf71cf092de939bbf5f7e189f72" +dependencies = [ + "core-foundation 0.10.1", + "jni", + "log", + "ndk-context", + "objc2", + "objc2-foundation", + "url", + "web-sys", +] + +[[package]] +name = "webpki-roots" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52f5ee44c96cf55f1b349600768e3ece3a8f26010c05265ab73f945bb1a2eb9d" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "weezl" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" + +[[package]] +name = "which" +version = "8.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81995fafaaaf6ae47a7d0cc83c67caf92aeb7e5331650ae6ff856f7c0c60c459" +dependencies = [ + "libc", +] + +[[package]] +name = "whoami" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "998767ef88740d1f5b0682a9c53c24431453923962269c2db68ee43788c5a40d" +dependencies = [ + "libc", + "libredox", + "objc2-system-configuration", + "wasite", + "web-sys", +] + +[[package]] +name = "widestring" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72069c3113ab32ab29e5584db3c6ec55d416895e60715417b5b883a357c3e471" + +[[package]] +name = "wildcard" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9b0540e91e49de3817c314da0dd3bc518093ceacc6ea5327cb0e1eb073e5189" +dependencies = [ + "thiserror 2.0.18", +] + +[[package]] +name = "wildmatch" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29333c3ea1ba8b17211763463ff24ee84e41c78224c16b001cd907e663a38c68" + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-registry" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720" +dependencies = [ + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets 0.53.5", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm 0.52.6", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + +[[package]] +name = "winnow" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" +dependencies = [ + "memchr", +] + +[[package]] +name = "winnow" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1" +dependencies = [ + "memchr", +] + +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck", + "wit-parser", +] + +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck", + "indexmap 2.14.0", + "prettyplease", + "syn 2.0.117", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn 2.0.117", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags 2.11.1", + "indexmap 2.14.0", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap 2.14.0", + "log", + "semver", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] + +[[package]] +name = "writeable" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" + +[[package]] +name = "x509-parser" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d43b0f71ce057da06bc0851b23ee24f3f86190b07203dd8f567d0b706a185202" +dependencies = [ + "asn1-rs", + "aws-lc-rs", + "data-encoding", + "der-parser", + "lazy_static", + "nom 7.1.3", + "oid-registry", + "ring", + "rusticata-macros", + "thiserror 2.0.18", + "time", +] + +[[package]] +name = "xdg-home" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec1cdab258fb55c0da61328dc52c8764709b249011b2cad0454c72f0bf10a1f6" +dependencies = [ + "libc", + "windows-sys 0.59.0", +] + +[[package]] +name = "yasna" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5f6765e852b9b4dc8e2a76843e4d64d1cea8e79bcde0b6901aea8e7c7f08282" +dependencies = [ + "bit-vec 0.9.1", + "time", +] + +[[package]] +name = "yoke" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "zbus" +version = "4.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb97012beadd29e654708a0fdb4c84bc046f537aecfde2c3ee0a9e4b4d48c725" +dependencies = [ + "async-broadcast", + "async-executor", + "async-fs", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-sink", + "futures-util", + "hex", + "nix 0.29.0", + "ordered-stream", + "rand 0.8.6", + "serde", + "serde_repr", + "sha1", + "static_assertions", + "tracing", + "uds_windows", + "windows-sys 0.52.0", + "xdg-home", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "4.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "267db9407081e90bbfa46d841d3cbc60f59c0351838c4bc65199ecd79ab1983e" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.117", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b9b1fef7d021261cc16cba64c351d291b715febe0fa10dc3a443ac5a5022e6c" +dependencies = [ + "serde", + "static_assertions", + "zvariant", +] + +[[package]] +name = "zerocopy" +version = "0.8.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85a5b4158499876c763cb03bc4e49185d3cccbabb15b33c627f7884f43db852e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zerotrie" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "zerovec" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239" +dependencies = [ + "serde", + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" + +[[package]] +name = "zstd" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "7.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d" +dependencies = [ + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.0.16+zstd.1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e19ebc2adc8f83e43039e79776e3fda8ca919132d68a1fed6a5faca2683748" +dependencies = [ + "cc", + "pkg-config", +] + +[[package]] +name = "zune-core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb8a0807f7c01457d0379ba880ba6322660448ddebc890ce29bb64da71fb40f9" + +[[package]] +name = "zune-jpeg" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296" +dependencies = [ + "zune-core", +] + +[[package]] +name = "zvariant" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2084290ab9a1c471c38fc524945837734fbf124487e105daec2bb57fd48c81fe" +dependencies = [ + "endi", + "enumflags2", + "serde", + "static_assertions", + "zvariant_derive", +] + +[[package]] +name = "zvariant_derive" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73e2ba546bda683a90652bac4a279bc146adad1386f25379cf73200d2002c449" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.117", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c51bcff7cc3dbb5055396bcf774748c3dab426b4b8659046963523cee4808340" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] diff --git a/epiphany-tool-codex-mcp-spine/Cargo.lock b/epiphany-tool-codex-mcp-spine/Cargo.lock index ecbfbc8a..feafbf5f 100644 --- a/epiphany-tool-codex-mcp-spine/Cargo.lock +++ b/epiphany-tool-codex-mcp-spine/Cargo.lock @@ -1709,11 +1709,13 @@ dependencies = [ "chrono", "cultcache-rs-derive", "fs2", + "redb", "rmp-serde", "serde", "serde_bytes", "serde_json", "uuid", + "windows-sys 0.59.0", ] [[package]] @@ -5433,6 +5435,15 @@ dependencies = [ "yasna", ] +[[package]] +name = "redb" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e925444704b5f17d32bf42f5b6e2df050bceebc3dcd6e71cc73dafe8092e839" +dependencies = [ + "libc", +] + [[package]] name = "redox_syscall" version = "0.5.18" diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index 7c4781d5..ed3b1819 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -1020,5 +1020,52 @@ signed ready heartbeat and commits failed history, epoch+1 successor, and an immutable evidence-digest receipt in one Body CAS. PID reuse, access failure, indeterminate observation, stale ready replay, and timeout remain inadmissible. +### Resident organizational Self + +Resident wake scheduling has one owner. The standard heartbeat consumes one +pending typed pressure and atomically emits one single-consumption Self grant; +`epiphany-swarm` does not invent work from an idle loop. Accepted pressure is +bounded to operator objective, Body-map drift, Persona feedback, and +Imagination proposal documents. Those documents request attention only. They +cannot adopt Mind state, authorize Hands, publish a release, or deploy it. + +Resident Self owns the grant-to-coordinator process transaction. Its inputs are +the authenticated packaged-release witness, separate resident/runtime/Verse/ +Mind stores, the heartbeat grant, the swarm brake, and exact process +observations. It outputs an immutable preparation, child claim, exact active +turn lease, coordinator terminal receipt binding, and terminal acknowledgement +back to heartbeat. The active turn and cooldown are derived from that chain; +PID, exit code, journal output, and an unbound coordinator receipt are sight, +not completion authority. + +Preparation and grant consumption share one CAS. The packaged coordinator must +claim the preparation before cognition, binding process id, creation token, +executable path and digest, grant, and launch digest. Resident Self then +acknowledges exactly that claim. Completion requires the same turn, grant, +launch digest, release identity, and coordinator receipt. Brake or timeout +drains the exact process and cannot silently abandon a live lease. A prepared +launch survives scheduler restart: an unclaimed preparation safely retries the +same grant and launch contract, while a claimed preparation reattaches only to +the exact process incarnation recorded by the packaged child before cognition. + +Forbidden writers are the old source-tree/Cargo `epiphany-swarm` wrapper, +`epiphany-work` queue machinery, free-running heartbeat loops, Persona, +Imagination, Modeling, coordinator artifacts, process exit, systemd, and +presentation projections. Direct operator objectives and domain-derived +pressure use the same pressure -> heartbeat grant -> preparation -> child claim +-> lease -> exact receipt -> terminal acknowledgement path. The cut line removes +the former `online`, `run`, `run-queue`, and `pulse` authority and packages the +swarm, coordinator, model runtime, and tool spine as witnessed sibling binaries. + +Verification belongs at the typed transition layer: CAS-loss and replay tests, +store-separation checks, packaged-witness authentication, brake/timeout process +timeline tests, child-claim-before-cognition proof, exact receipt substitution +rejection, and negative scans proving no runtime Cargo or historical queue path +survives. A nonblocking trust seam remains: the parent currently compares its +post-launch process observation with the child's atomic claim. The claim closes +child bootstrap authority, but a future hardening pass should replace parent +observation trust with an OS-authenticated parent/child launch channel where the +host supports one; it is not permission to accept PID-only identity. + This map must change when ownership changes. Historical scars belong in git, evidence, or an explicitly archived note—not in the machine's Modeling state. diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index c70c956f..5730a659 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -2444,6 +2444,58 @@ proposal -> explicit adoption/review -> Hands consequence -> Bifrost exact release authority -> Idunn deployment receipt, plus the negative that conversation alone cannot cross any later boundary. +Live observation on 2026-07-18 sharpened the deployment boundary. Exact release +`0601e280480cccc28209fbf0630e921f3ef9056d` kept its projector incarnation alive +and advanced the Qdrant workspace collection from 1,621 to 3,278 points after +the foreground Idunn deploy actuator was no longer present. `deployment.env` +remained absent and Idunn correctly raised `dependency-unavailable` because it +could not establish release freshness. A surviving candidate and advancing +checkpoint are resumable work evidence, not deployment admission. After the +provider reaches terminal projection, the same exact authorized release must +re-enter Idunn's deployment transaction and earn the typed deployment witness; +no observer, systemd state, Qdrant count, or journal line may synthesize it. + +## Resident organizational Self ownership (2026-07-18) + +The resident cognition cut now has a concrete authority boundary. Standard +heartbeat alone converts one pending typed pressure into one single-consumption +Self scheduling grant. Resident Self alone turns that grant into one exact +coordinator process lease. The coordinator, model runtime, and tool spine keep +their existing authorities; the resident scheduler does not absorb them. + +Inputs are an authenticated packaged-release witness, physically separate +resident/runtime/Verse/Mind stores, the swarm brake, exact process observation, +and typed operator-objective, Body-map-drift, Persona-feedback, or +Imagination-proposal pressure. Outputs are immutable pressure/grant, +preparation, child-claim, active-lease, coordinator-receipt binding, and +heartbeat terminal-ack documents. Active status and cooldown are derived from +that chain. Process exit, logs, Persona speech, proposal text, systemd state, +Eve/Gjallar projection, and Qdrant progress are forbidden writers. + +All wake sources share one path: pressure -> heartbeat grant -> prepared launch +-> packaged coordinator child claim before cognition -> exact process lease -> +bound coordinator terminal receipt -> terminal acknowledgement. Preparation +and grant consumption use one CAS; brake and timeout drain the exact observed +process; coordinator exit zero without its exact receipt fails. The old +source-tree/Cargo swarm wrapper and its `online`, `run`, `run-queue`, `pulse`, +and `epiphany-work` queue authority are outside the live body. Packaging now +requires witnessed sibling roles for swarm, coordinator, model runtime, and the +Codex MCP tool spine. + +Verification must remain at these typed transitions: CAS/replay, store +separation, release witness, child-claim-before-cognition, exact process +identity, brake/timeout timelines, receipt substitution, and absence of runtime +Cargo/queue paths. One nonblocking hardening note remains: the parent currently +correlates its post-launch process observation with the child's atomic claim. +That is stronger than PID custody and fails closed, but it should eventually be +replaced by an OS-authenticated parent/child launch channel where available. + +This is cognition bootstrap, not deployment admission. Ygg release +`0601e280480cccc28209fbf0630e921f3ef9056d` remains a live advancing candidate +until Idunn publishes the exact typed deployment witness; resident service +installation, writable domain custody, credentials, Persona/Discord ingress, +and the Starfire-offline rehearsal remain required. + The immediate live wound precedes that work. The workspace projector is the lifetime owner of `workspace-coverage.cc`, but the supervisor currently opens that private store to discover and perform recovery. Replace that transitive diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 4e0678ce3913d6d894c6bc448ba47358763cb197..91b6e0aaffb97d1e0ed14863e5d8644278566283 100644 GIT binary patch delta 664 zcmYjPy^hmB5GLX0uDRkGN;HTzj^mSZM29H&X|6zu2o>FAJ+W6=@0#89Kz@$;`&4v*h|y3>2n z>-~DQ?Z4jkd#Lohin@lnj=F(5_`K~Oem^>X^W|i8a+;0qX2s-L0i3tDe;nM}OrA>6 zrPxT$S8Vl5j@nr^G!wHR>sHhS2^80@l;l=cJhfgz=)6#@z3Zx)YGEJe!jUS^HV){~ zgIStt+3(N>)UsM~1q4-VQ>I>~TxE6KfQ*!3-3&-BSw-}m0zMhxAOo7a&XyF#H#({E zqC~f#V4UuG0S~E0%1Rn|8PY?~OWcmS5!YcHk|RW>`|d*gI-MkjjnGO*n+Um!HSTKl zS984%_%IZrgW2$(okZ>httYM&qivN>#RtTepEq1VXv%P(6PMh=0VooV>%5W-HZQ~u zH}o(62#J9v`D7ng_D3X=-t~$iFNy)FBxkNI@SwvuwM4K@Qj$mKkWmL04VKn&2={2_ zIzx+HjMmX~luwHxO(6w4pWZ)zjIs2N^`z|G0?ryv=+@bJLWjS^!X}Hp3z2H}_+fB5 F{0*X#?Zf~8 delta 67 zcmX@URN?*tg$-hiye3x0=2nIlQO6iK_-!^TGZr#3K5m}M)IODo5r{!FGZ3=?F)I+W N0WtgbsZ1QFcmc`n6i@&F diff --git a/state/map.yaml b/state/map.yaml index 2d45b0c2..ebf41d11 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -736,7 +736,8 @@ current_status: - Workspace-coverage launch, heartbeat, and termination now serialize through one typed per-launch process-evidence head. Launch initializes generation 1 as `launched`; each signed heartbeat exact-CAS advances it to `heartbeat`; host-signed termination exact-CAS seals it as `terminated`. Termination v1 accepts exact launch plus enrolled host/boot/process proof before heartbeat sequence one and records heartbeat id/digest only when the head names current signed heartbeat evidence. A heartbeat cannot advance a terminated head. This removes the pre-readiness death strand without allowing heartbeat/termination split authority. - The feature-gated native `epiphany-workspace-coverage-recovery-smoke` proves the real packaged supervisor/projector boundary in GUID-scoped repo/runtime/Body/Verse state. It warms local Ollama, derives only its exact fenced Qdrant collection names, publishes reserved policy, launches the initial child through fixed bootstrap, observes epoch 1 claim, kills only after exact native launch-incarnation revalidation, invokes Idunn reconcile, authenticates epoch 2 successor authority plus the immutable recovery receipt through freshly reopened stores, kills the replacement under the same identity fence, and verifies only its owned collections absent before success. Live proof `C:\Users\Meta\AppData\Local\Temp\epiphany-workspace-coverage-a577f820-b0e2-4733-b628-529ee3bdb143\proof.json` passed with receipt `2b44f28f-7c0f-4ad2-aefe-d7c8222e8642` and binds the executed binary, exact embedded smoke source, source head, and tracked-source diff digests. Operator orchestration, not the harness, restored local Qdrant to its prior stopped state. The run also repaired normal-user Windows boot identity and exact recovered-owner claim resumption. - The 2026-07-16 deployability audit is historical evidence for wounds since cut: immutable packaged releases removed mutable sibling generations, repository readiness joined Body/Modeling/Mind authority, and release `0601e280480cccc28209fbf0630e921f3ef9056d` is running on Yggdrasil under Bifrost/Idunn while its first workspace projection advances. The machine is still not an autonomous organizational swarm: the deployed body hosts projectors and supervisor, not the resident coordinator/scheduler, model runtime, tool spine, writable Hands workspace, or Persona/Discord crossing. Health, heartbeat, systemd state, Qdrant existence, and Gjallar/Eve projections cannot substitute for those missing cognition organs or final deployment admission. + - Resident organizational Self now has a typed ownership cut in source. Standard heartbeat alone consumes pending operator-objective, Body-map-drift, Persona-feedback, or Imagination-proposal pressure and atomically emits one single-consumption scheduling grant. Resident Self alone owns grant consumption, immutable prepared launch, packaged coordinator child claim before cognition, one exact process lease, exact coordinator terminal-receipt binding, and terminal acknowledgement back to heartbeat. All wake sources share that path; pressure cannot adopt Mind state, invoke Hands, authorize release, or deploy. The old source-tree/Cargo swarm wrapper and its online/run/run-queue/pulse/epiphany-work queue path are forbidden writers and removed from the live mechanism. Packaged release witness roles now include swarm, coordinator, model runtime, and tool Codex MCP spine. Verification belongs to CAS/replay, physical store separation, witnessed binaries, child-claim and exact-process timelines, brake/timeout draining, receipt substitution rejection, and negative runtime-Cargo/queue scans. Nonblocking hardening remains: replace the parent's post-launch process observation correlation with an OS-authenticated parent/child launch channel where supported; PID alone remains inadmissible. This source cut is not Ygg service installation or deployment admission. - Release `sha256-c94109f94ee42c1257089830f399cb87cd5ad672772c274194371995ce4df923` is the first deployed immutable sibling generation. Native packaging builds from detached exact source commit `dd80f4a51c18425a6665710698a357be61154abf`, initializes pinned submodules, uses the tracked lockfile under `--locked`, and publishes four exact binaries plus a typed CultCache witness/head only after atomic directory publication and byte verification. Task Scheduler pins release id/digest and the witnessed supervisor path; Idunn reauthenticates the complete set and reserved policy role paths. Current-boot proof: reconciler PID 21228 launched direct child 22736; witnessed Mind/Modeling queries ranked semantically; killing that exact-path child caused Idunn to launch PID 19748 with receipt `86a42d51-9930-4b5d-9e61-e74c82a0d808`, ready heartbeat `4fc91977-b635-474b-812b-c364847e2b4b`, and witnessed executable digest `sha256-1060dd64e8c2b520ec8744b67e8306db04a6618d463fc2117c352adf9e30e6b0`. This closes current-boot artifact generation and recurrence, not reboot/logon survival. - Release `sha256-6f9ab4848207a110e7e3836f41e6a74c0f463369ad4b04ce2d0d3831a6b262ae` packages repository-readiness source commit `360dcb433dda9599fca14282592608d26b8b6cc8`; witnessed Idunn PID 29476 directly owns witnessed projector PID 22840 with launch receipt `50879209-b65f-4411-ae3f-6f647d37bf42` and ready heartbeat `134df620-9e20-4220-ad4e-117ea4ca8188`. Deployment exposed receipt-v2 migration pressure: v1 receipts became correctly ineligible, but the old Succeeded pulse shortcut kept both partitions idle. The shortcut is now cut in source. Valid v2 terminal evidence derives Ready; an exact same-obligation succeeded claim opens Repair only after its consumed grant/recovery authority and exact succeeded attempt are authenticated. Failed repair retries through execute at the next epoch. Forged predecessor authority cannot be laundered by a repair grant. - Yggdrasil exact-SHA pressure release `586147a751c6eec2d59cd8dc10bd17ce0d02a4d1` proved useful GPU work but failed deployment honestly. GTX 1080 stayed near saturation at 2,419 MiB; bounded four-text requests completed continuously. Mind published 215 vectors, while workspace coverage completed 3,389 Ollama HTTP calls total (about 13.3k workspace chunks after Mind) before Idunn's 50-minute candidate-health deadline at 2026-07-17T01:23:50+02:00. Idunn then stopped the service, published no deployment witness, and reported no exact-candidate daemon-health proof; the Modeling collection remained at the inherited 22 points because the monolithic executor had not yet published its accumulated vectors. This is failure evidence for the execution/deployment contract, not for GPU acceleration. Total wall-time extension is forbidden as the repair. - next_action: "Commit and push the verified typed live-vs-recovery reconciliation split, then let exact Yggdrasil release 0601e280480cccc28209fbf0630e921f3ef9056d finish its detached checkpointed first projection and record terminal Idunn deployment admission without interrupting its sole store owner. Its current collection advanced from 193 to 1621 points while body.cc remained 612961 bytes and projector PID 145165 remained stable; deployment.env is still absent, so admission is pending. After terminal proof, authorize and Idunn-deploy the reconciliation commit and run exact kill/recovery replay. Then package the resident organizational swarm (scheduler/coordinator, model runtime, tool spine, Persona), provision its writable domain worktree and local credentials, wire VoidBot/Bifrost Discord feedback and separately authenticated operations, and complete a Starfire-offline rehearsal before 2026-07-22. Ordinary Persona conversation may create typed feedback pressure but cannot adopt Mind state, invoke Hands, authorize release, or deploy. No host reboot is authorized." + next_action: "Let exact Yggdrasil release 0601e280480cccc28209fbf0630e921f3ef9056d finish its detached checkpointed first projection without interrupting its sole store owner. Its collection advanced beyond 5256 points while projector PID 145165 remained stable. The foreground Idunn deploy actuator is no longer present and deployment.env remains absent; a surviving candidate is not deployment admission. After terminal provider proof, re-enter the same exact authorized release through Idunn and require its typed deployment witness. The resident organizational Self ownership cut is complete in source: standard heartbeat emits a single-consumption Self scheduling grant; resident Self transactionally owns one exact coordinator process lease; typed Body-map, Persona-feedback, and Imagination-proposal pressure can request scheduling but cannot adopt Mind state, invoke Hands, authorize release, or deploy. Next package and install this resident service body on Yggdrasil, provision its writable domain worktree and local credentials, wire VoidBot/Bifrost Discord feedback and separately authenticated operations, then complete a Starfire-offline rehearsal before 2026-07-22. After exact release admission, authorize and Idunn-deploy the live-vs-recovery reconciliation commit and run exact kill/recovery replay. No host reboot is authorized."