Separate worker launch from bootstrap

This commit is contained in:
Meta Vens 2026-07-12 21:25:38 +01:00
commit f17a6d4585
7 changed files with 90 additions and 11 deletions

View file

@ -20,15 +20,17 @@ use epiphany_core::query_epiphany_local_verse_context;
use epiphany_core::render_epiphany_prompt_context;
use epiphany_core::seed_epiphany_local_verse_context;
use serde_json::json;
use std::env;
use std::path::PathBuf;
fn main() -> Result<()> {
let store = env::args().nth(1).map(PathBuf::from).unwrap_or_else(|| {
PathBuf::from(".epiphany-smoke")
.join("cultmesh")
.join("epiphany-prompt-context.ccmp")
});
if std::env::args().nth(1).is_some() {
anyhow::bail!(
"prompt-context smoke accepts no arguments and writes only beneath .epiphany-smoke"
);
}
let store = PathBuf::from(".epiphany-smoke")
.join("cultmesh")
.join("epiphany-prompt-context.ccmp");
if let Some(parent) = store.parent() {
std::fs::create_dir_all(parent)?;
}