aKode fase 5: test e snapshot adeguati alla rinomina, 429 distinto (ProviderRateLimited), cargo fmt dopo il cambio dei prefissi
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,8 +7,8 @@ use super::helpers::validated_rollout_file_name;
|
||||
use crate::ArchiveThreadsParams;
|
||||
use crate::ThreadStoreError;
|
||||
use crate::ThreadStoreResult;
|
||||
use chrono::Utc;
|
||||
use akode_rollout::RolloutReferenceIndex;
|
||||
use chrono::Utc;
|
||||
use tracing::warn;
|
||||
|
||||
use super::thread_rollout_resolver;
|
||||
@@ -153,12 +153,12 @@ async fn archive_thread_with_paths(
|
||||
mod tests {
|
||||
use std::time::Duration;
|
||||
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::protocol::SessionSource;
|
||||
use akode_protocol::protocol::ThreadHistoryMode;
|
||||
use akode_rollout::ARCHIVED_SESSIONS_SUBDIR;
|
||||
use akode_utils_absolute_path::test_support::PathExt;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use tempfile::TempDir;
|
||||
use uuid::Uuid;
|
||||
|
||||
@@ -7,8 +7,6 @@ use std::path::Path;
|
||||
use std::path::PathBuf;
|
||||
use std::time::SystemTime;
|
||||
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use akode_git_utils::GitSha;
|
||||
use akode_protocol::SanitizedGitUrl;
|
||||
use akode_protocol::ThreadId;
|
||||
@@ -24,6 +22,8 @@ use akode_rollout::RolloutReferenceIndex;
|
||||
use akode_rollout::ThreadItem;
|
||||
use akode_rollout::find_thread_names_by_ids;
|
||||
use akode_state::ThreadMetadata;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
|
||||
use super::LocalThreadStore;
|
||||
use crate::StoredThread;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use akode_rollout::RolloutConfig;
|
||||
use akode_rollout::RolloutRecorder;
|
||||
use akode_rollout::parse_cursor;
|
||||
use akode_state::ThreadFilterOptions;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
|
||||
use super::LocalThreadStore;
|
||||
use super::helpers::resolve_thread_names;
|
||||
@@ -347,12 +347,12 @@ fn state_relation_filter(filter: ThreadRelationFilter) -> akode_state::ThreadRel
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::protocol::SessionSource;
|
||||
use akode_protocol::protocol::ThreadHistoryMode;
|
||||
use akode_state::PINNED_THREAD_SECTION_ID;
|
||||
use akode_utils_absolute_path::test_support::PathExt;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use std::fs;
|
||||
use tempfile::TempDir;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use akode_protocol::models::PermissionProfile;
|
||||
use akode_protocol::protocol::AskForApproval;
|
||||
use akode_protocol::protocol::SessionMeta;
|
||||
@@ -11,6 +9,8 @@ use akode_rollout::find_thread_name_by_id;
|
||||
use akode_rollout::read_session_meta_line;
|
||||
use akode_rollout::read_thread_item_from_rollout;
|
||||
use akode_state::ThreadMetadata;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
|
||||
use super::LocalThreadStore;
|
||||
use super::helpers::distinct_thread_metadata_title;
|
||||
@@ -616,7 +616,6 @@ mod tests {
|
||||
use std::io::Write;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::items::TurnItem;
|
||||
use akode_protocol::items::UserMessageItem;
|
||||
@@ -629,6 +628,7 @@ mod tests {
|
||||
use akode_protocol::user_input::UserInput;
|
||||
use akode_rollout::RolloutItem;
|
||||
use akode_state::ThreadMetadataBuilder;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use tempfile::TempDir;
|
||||
use uuid::Uuid;
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
use std::fs;
|
||||
use std::fs::FileTimes;
|
||||
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::protocol::SessionMeta;
|
||||
use akode_protocol::protocol::SessionMetaLine;
|
||||
use akode_protocol::protocol::ThreadSource;
|
||||
use akode_rollout::RolloutItem;
|
||||
use akode_rollout::RolloutLine;
|
||||
use chrono::DateTime;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use tempfile::TempDir;
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@ use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use chrono::DateTime;
|
||||
use akode_app_server_protocol::project_rollout_line;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::protocol::InternalSessionSource;
|
||||
@@ -28,6 +27,7 @@ use akode_protocol::protocol::ThreadSource;
|
||||
use akode_rollout::RolloutItem;
|
||||
use akode_rollout::RolloutLine;
|
||||
use akode_rollout::RolloutMaintenanceGuard;
|
||||
use chrono::DateTime;
|
||||
use serde::Serialize;
|
||||
use tokio::fs::File;
|
||||
use tokio::io::AsyncBufReadExt;
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
//! byte-for-byte. Filesystem publishing and SQLite projection intentionally live outside this
|
||||
//! module.
|
||||
|
||||
use chrono::DateTime;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::items::ReasoningItem;
|
||||
use akode_protocol::items::TurnItem;
|
||||
@@ -22,6 +21,7 @@ use akode_protocol::protocol::TurnCompleteEvent;
|
||||
use akode_protocol::protocol::TurnStartedEvent;
|
||||
use akode_rollout::RolloutItem;
|
||||
use akode_rollout::RolloutLine;
|
||||
use chrono::DateTime;
|
||||
use std::borrow::Cow;
|
||||
use std::collections::HashSet;
|
||||
use tokio::fs::File;
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
//! persisted rollouts. It does not decide turn boundaries, rollback behavior, or what gets written
|
||||
//! into paginated history.
|
||||
|
||||
use chrono::DateTime;
|
||||
use akode_rollout::RolloutLine;
|
||||
use akode_utils_path_uri::LegacyAppPathString;
|
||||
use akode_utils_path_uri::PathUri;
|
||||
use chrono::DateTime;
|
||||
use serde_json::Map;
|
||||
use serde_json::Value;
|
||||
|
||||
|
||||
@@ -15,12 +15,12 @@ use std::path::PathBuf;
|
||||
use std::time::Duration;
|
||||
use std::time::SystemTime;
|
||||
|
||||
use chrono::NaiveDateTime;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::protocol::ThreadHistoryMode;
|
||||
use akode_rollout::StateDbHandle;
|
||||
use akode_state::RolloutMigrationCursor;
|
||||
use akode_state::RolloutMigrationSkippedRollout;
|
||||
use chrono::NaiveDateTime;
|
||||
|
||||
use super::LocalThreadStore;
|
||||
use super::RolloutMigrationMode;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::protocol::SessionSource;
|
||||
use akode_protocol::protocol::ThreadHistoryMode;
|
||||
use akode_rollout::ThreadItem;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use tempfile::TempDir;
|
||||
use uuid::Uuid;
|
||||
|
||||
@@ -14,9 +14,9 @@ use crate::ThreadStore;
|
||||
use crate::ThreadStoreError;
|
||||
use crate::local::test_support::test_config;
|
||||
use crate::local::test_support::write_session_file;
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::protocol::SessionSource;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use serde_json::json;
|
||||
use std::path::Path;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
use std::fs;
|
||||
use std::time::Duration;
|
||||
|
||||
use chrono::Utc;
|
||||
use akode_app_server_protocol::CodexErrorInfo;
|
||||
use akode_app_server_protocol::ThreadTimelineEntry;
|
||||
use akode_protocol::ThreadId;
|
||||
@@ -18,6 +17,7 @@ use akode_protocol::realtime::RealtimeSessionOutcome;
|
||||
use akode_protocol::realtime::RealtimeTranscriptRole;
|
||||
use akode_rollout::RolloutItem;
|
||||
use akode_rollout::RolloutLine;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use tempfile::TempDir;
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@ use std::io::SeekFrom;
|
||||
use std::path::Path;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use chrono::DateTime;
|
||||
use akode_app_server_protocol::ThreadHistoryChangeSet;
|
||||
use akode_app_server_protocol::project_rollout_line;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_rollout::RolloutItem;
|
||||
use chrono::DateTime;
|
||||
use tracing::warn;
|
||||
|
||||
use super::LocalThreadStore;
|
||||
|
||||
@@ -5,7 +5,6 @@ use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use chrono::Utc;
|
||||
use akode_app_server_protocol::McpToolCallResult;
|
||||
use akode_app_server_protocol::ThreadItemPayload;
|
||||
use akode_protocol::ThreadId;
|
||||
@@ -47,6 +46,7 @@ use akode_rollout::RolloutLine;
|
||||
use akode_rollout::RolloutRecorder;
|
||||
use akode_rollout::RolloutRecorderParams;
|
||||
use akode_utils_absolute_path::test_support::PathExt;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use tempfile::TempDir;
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
use super::test_support::test_config;
|
||||
use super::test_support::write_session_file_with_history_mode;
|
||||
use super::*;
|
||||
use chrono::Utc;
|
||||
use akode_protocol::protocol::TokenUsage;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
|
||||
#[tokio::test]
|
||||
|
||||
@@ -201,10 +201,10 @@ async fn unarchive_thread_with_index(
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::protocol::SessionSource;
|
||||
use akode_utils_absolute_path::test_support::PathExt;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use tempfile::TempDir;
|
||||
use uuid::Uuid;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
use std::path::Path;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use chrono::Utc;
|
||||
use akode_protocol::SanitizedGitUrl;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::protocol::GitInfo;
|
||||
@@ -16,6 +15,7 @@ use akode_rollout::RolloutRecorderParams;
|
||||
use akode_rollout::append_thread_name;
|
||||
use akode_rollout::read_session_meta_line;
|
||||
use akode_state::ThreadMetadataBuilder;
|
||||
use chrono::Utc;
|
||||
use tracing::warn;
|
||||
|
||||
use super::LocalThreadStore;
|
||||
|
||||
Reference in New Issue
Block a user