Skip to main content

Module ops

Module ops 

Source
Expand description

Operations manager for agent file management.

This module provides a structured interface for file operations with JSON feedback, designed for AI agents to manage files through the virtual .ops/ directory.

Re-exportsยง

use chrono::DateTime; ๐Ÿ”’
use chrono::Utc; ๐Ÿ”’
use ragfs_core::VectorStore; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use std::fs; ๐Ÿ”’
use std::path::Path; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use tokio::sync::RwLock; ๐Ÿ”’
use tokio::sync::mpsc; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’
use tracing::info; ๐Ÿ”’
use tracing::warn; ๐Ÿ”’
use uuid::Uuid; ๐Ÿ”’
use crate::safety::HistoryOperation; ๐Ÿ”’
use crate::safety::SafetyManager; ๐Ÿ”’
use crate::safety::UndoData; ๐Ÿ”’

Structsยง

BatchRequest
Batch operation request.
BatchResult
Result of batch operations.
JournalEntry ๐Ÿ”’
Journal entry tracking an executed operation for potential rollback.
OperationResult
Result of a single operation.
OpsManager
Operations manager for file operations with feedback.
RollbackDetails
Details about rollback execution for atomic batches.
RollbackError
Error encountered during a rollback operation.

Enumsยง

Operation
A single file operation.
RollbackData ๐Ÿ”’
Data needed to rollback an operation. This is internal to batch operations and more detailed than UndoData.