Fix: use lib crate imports in main.rs

Binary targets must import from the library using the crate name (aigpt::),
not as local modules (pub mod memory).

This fixes the 'unresolved import' errors.
This commit is contained in:
Claude
2025-11-05 16:31:00 +00:00
parent f9f637e3cf
commit e6d5915f47

View File

@@ -2,11 +2,8 @@ use anyhow::Result;
use clap::{Parser, Subcommand}; use clap::{Parser, Subcommand};
use std::path::PathBuf; use std::path::PathBuf;
pub mod memory; use aigpt::memory::MemoryManager;
pub mod mcp; use aigpt::mcp::BaseMCPServer;
use memory::MemoryManager;
use mcp::BaseMCPServer;
#[derive(Parser)] #[derive(Parser)]
#[command(name = "aigpt")] #[command(name = "aigpt")]