fix: resolve compilation errors in mem-ingest and mem-cli
- Fix Record import: mem_core::Record instead of mem_chunk - Remove unused imports (anyhow::anyhow, Pin, Context, Poll, Result) - Stub check_database() in verify.rs (pending PgRepo implementation) - Wrap run_id with Some() to match Option<String> type - All tests pass, no blocking compilation errors
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
//! Reads a directory tree of markdown files, splits on ATX headings,
|
||||
//! and emits one Record per section with breadcrumb paths attached.
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use anyhow::Result;
|
||||
use mem_chunk::RecordSource;
|
||||
use mem_core::{Provenance, Record, Role};
|
||||
use futures::stream::{self, Stream};
|
||||
|
||||
@@ -6,10 +6,9 @@
|
||||
//! No vault projection: Obsidian remains source of truth for rebuilds.
|
||||
|
||||
use anyhow::Result;
|
||||
use mem_chunk::record_source::{Record, RecordSource};
|
||||
use mem_chunk::record_source::RecordSource;
|
||||
use mem_core::Record;
|
||||
use futures::stream::Stream;
|
||||
use std::pin::Pin;
|
||||
use std::task::{Context, Poll};
|
||||
|
||||
/// Reference record metadata
|
||||
#[derive(Debug, Clone)]
|
||||
@@ -39,7 +38,7 @@ impl ObsidianClient {
|
||||
}
|
||||
|
||||
/// Read file contents from vault
|
||||
pub async fn read_file(&self, path: &str) -> Result<String> {
|
||||
pub async fn read_file(&self, _path: &str) -> Result<String> {
|
||||
// TODO: Call Obsidian REST API
|
||||
// GET {base_url}/api/vault/readFile?path={path}
|
||||
// Returns: file contents
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! in session transcripts and marks them as derived (not evidence).
|
||||
//! Uses shingle matching at section granularity with configurable thresholds.
|
||||
|
||||
use anyhow::Result;
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
||||
/// Artifact (skill or reference) in the manifest
|
||||
@@ -67,7 +67,7 @@ impl ReferenceCycleGuard {
|
||||
/// Check if a chunk matches any reference in manifest
|
||||
pub fn detect_derived_reference(
|
||||
&self,
|
||||
content: &str,
|
||||
_content: &str,
|
||||
content_shingles: &[String],
|
||||
) -> Option<ShingleMatch> {
|
||||
// Compute shingle overlap with all reference artifacts
|
||||
|
||||
Reference in New Issue
Block a user