vectie/moontown/adapters/moonbook does not have a README file
fn BookCatalogEntry::new(id~ : String, name~ : String, purpose~ : String, workspace_root~ : String, memory_scope? : MemoryScope, tags? : Array[String], skills? : Array[String]) -> BookCatalogEntryfn BookResult::new(result_id~ : String, summary~ : String, artifacts? : Array[String], memory_candidates? : Array[MemoryCandidate], requires_review? : Bool, notify_town? : Bool) -> BookResultfn BookResult::to_executable_book_event(self : BookResult, book_id~ : String, evidence_id? : String?, run_id? : String?, review_path? : String?) -> ExecutableBookEventpub struct BookStateSnapshot {
contract : String
book_id : String
root : String
generated_at : Int
catalog : BookCatalogRecord
summary : BookStateSummary
health : BookHealthReport
knowledge : KnowledgeBundle
latest_event : ExecutableBookEvent?
paths : BookStatePaths
} derive(Eq, ToJson, Debug, FromJson)pub struct BookStateSummary {
book_id : String
root : String
page_count : Int
source_count : Int
source_page_count : Int
candidate_source_count : Int
provisional_source_count : Int
verified_source_count : Int
entity_count : Int
entity_page_count : Int
concept_count : Int
concept_page_count : Int
query_note_count : Int
pending_review_count : Int
keeper_memory_count : Int
keeper_working_count : Int
evidence_count : Int
total_evidence_count : Int
operational_evidence_count : Int
substantive_coverage_ready : Bool
summary : String
} derive(Eq, ToJson, Debug, FromJson)fn BookStateSummary::new(book_id~ : String, root~ : String, page_count~ : Int, source_count~ : Int, source_page_count? : Int, candidate_source_count? : Int, provisional_source_count? : Int, verified_source_count? : Int, entity_count~ : Int, entity_page_count? : Int, concept_count~ : Int, concept_page_count? : Int, query_note_count? : Int, pending_review_count~ : Int, keeper_memory_count~ : Int, keeper_working_count~ : Int, evidence_count~ : Int, total_evidence_count? : Int, operational_evidence_count? : Int, substantive_coverage_ready? : Bool, summary~ : String) -> BookStateSummaryfn BookTask::new(id~ : String, goal? : String?, title~ : String, kind~ : String, prompt~ : String, priority~ : Int, requires_review~ : Bool, target_pages? : Array[String], required_role? : WorkerRole?) -> BookTaskpub struct KnowledgeBundle {
contract : String
book_id : String
root : String
generated_at : Int
summary : BookStateSummary
health : BookHealthReport
pages : Array[KnowledgePageRecord]
graph : KnowledgeGraph
review_queue_path : String
event_protocol : String
} derive(Eq, ToJson, Debug, FromJson)pub struct KnowledgeGraph {
nodes : Array[KnowledgePageRecord]
edges : Array[KnowledgeGraphEdge]
} derive(Eq, ToJson, Debug, FromJson)fn MemoryCandidate::new(kind~ : String, title~ : String, detail~ : String, durable? : Bool, target_page? : String?) -> MemoryCandidatepub struct MoonCodeBookResultImport {
key : String
session_id : String
command_id : String
result_id : String
summary : String
artifacts : Array[String]
review_queued : Bool
notify_town : Bool
evidence_id : String
updated_pages : Array[String]
executable_event_path : String
latest_executable_event_path : String
executable_event : ExecutableBookEvent
} derive(Eq, ToJson, Debug, FromJson)impl BookProvider for MoonbookCatalogProviderfn PersistResultOutcome::new(log_path~ : String, updated_pages~ : Array[String], review_queued~ : Bool, notify_town~ : Bool, evidence_id~ : String, executable_event_path~ : String, latest_executable_event_path~ : String, executable_event~ : ExecutableBookEvent) -> PersistResultOutcomepub struct WorkerContextBundle {
book_id : String
workspace_root : String
task_id : String
prompt : String
policy : Array[String]
routines : Array[String]
skill_paths : Array[String]
context_pages : Array[String]
active_memory : Array[String]
user_memory : Array[String]
working_memory : Array[String]
memory_summary : String
output_contract : Array[String]
} derive(Eq, ToJson, Debug, FromJson)async fn accept_goal(entry : BookCatalogEntry, goal : String, goal_id? : String?) -> BookGoalAcceptanceasync fn book_state_snapshot(entry : BookCatalogEntry, moonbook_root? : String) -> BookStateSnapshotfn entry_for_explicit_research_book(catalog : Array[BookCatalogEntry], book_id : String, goal : String) -> BookCatalogEntry?async fn persist_result(entry : BookCatalogEntry, result : BookResult, moonbook_root? : String) -> PersistResultOutcomeasync fn persist_result_payload(entry : BookCatalogEntry, payload : Json, moonbook_root? : String) -> PersistResultOutcomeasync fn produce_task_batch(entry : BookCatalogEntry, goal : String, goal_id? : String?) -> BookTaskBatchasync fn reconcile_mooncode_book_result_sidecars(entry : BookCatalogEntry, moonbook_root? : String) -> Array[MoonCodeBookResultImport]Dependencies