Skip to content
Merged

Dev #10

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cortex-mem"
version = "0.1.0"
version = "1.0.0"
edition = "2024"

[workspace]
Expand Down
2 changes: 1 addition & 1 deletion cortex-mem-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cortex-mem-cli"
version = "0.1.0"
version = "1.0.0"
edition = "2024"
description = "Command line interface for Rust agent memory system"
license = "MIT"
Expand Down
10 changes: 6 additions & 4 deletions cortex-mem-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ use tracing_subscriber;
mod commands;

use commands::{
OptimizeCommand,
OptimizationStatusCommand,
OptimizationConfigCommand,
OptimizeCommand,
OptimizationStatusCommand,
OptimizationConfigCommand,
OptimizeCommandRunner,
};
use commands::add::AddCommand;
Expand All @@ -25,7 +25,9 @@ use commands::search::SearchCommand;

#[derive(Parser)]
#[command(name = "cortex-mem-cli")]
#[command(about = "Rust Agent Memory System CLI")]
#[command(about = "Cortex Memory CLI for Agent Memory Layer")]
#[command(author = "Sopaco")]
#[command(version)]
pub struct Cli {
#[command(subcommand)]
pub command: Commands,
Expand Down
2 changes: 1 addition & 1 deletion cortex-mem-config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cortex-mem-config"
version = "0.1.0"
version = "1.0.0"
edition = "2024"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion cortex-mem-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cortex-mem-core"
version = "0.1.0"
version = "1.0.0"
edition = "2024"
description = "Core memory management engine for Rust agent memory system"
license = "MIT"
Expand Down
64 changes: 30 additions & 34 deletions cortex-mem-insights/bun.lock

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions cortex-mem-insights/src/lib/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,16 @@ export const optimizationApi = {
});
},

// 清理请求
cleanup: (params?: {
max_age_days?: number;
}) => {
return request('/api/optimization/cleanup', {
method: 'POST',
body: JSON.stringify(params || {}),
});
},

// 获取优化统计
statistics: () => {
return request('/api/optimization/statistics');
Expand Down
Loading