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:
@@ -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")]
|
||||||
|
|||||||
Reference in New Issue
Block a user