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:
@@ -14,12 +14,12 @@ use std::sync::MutexGuard;
|
||||
use std::time::Duration;
|
||||
use std::time::Instant;
|
||||
|
||||
use async_channel::Sender;
|
||||
use akode_protocol::shell_environment::is_non_inheritable_env_var;
|
||||
#[cfg(unix)]
|
||||
use akode_utils_pty::Command;
|
||||
#[cfg(windows)]
|
||||
use akode_utils_pty::JobObject;
|
||||
use async_channel::Sender;
|
||||
use futures::future::try_join;
|
||||
use serde_json::Value;
|
||||
use tokio::io::AsyncWriteExt;
|
||||
|
||||
@@ -8,7 +8,6 @@ use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use async_channel::Receiver;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::protocol::HookCompletedEvent;
|
||||
use akode_protocol::protocol::HookEventName;
|
||||
@@ -18,6 +17,7 @@ use akode_protocol::protocol::HookRunStatus;
|
||||
use akode_protocol::protocol::HookSource;
|
||||
use akode_protocol::shell_environment::AKODE_EXEC_SERVER_NOISE_AUTH_TOKEN_ENV_VAR;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use async_channel::Receiver;
|
||||
use pretty_assertions::assert_eq;
|
||||
use tempfile::TempDir;
|
||||
use tempfile::tempdir;
|
||||
|
||||
@@ -2,9 +2,9 @@ use std::sync::LazyLock;
|
||||
use std::time::Duration;
|
||||
use std::time::Instant;
|
||||
|
||||
use akode_protocol::models::ContentItemMetadata;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use akode_protocol::models::ContentItemMetadata;
|
||||
use regex::Regex;
|
||||
use serde_json::Map;
|
||||
use serde_json::Value;
|
||||
|
||||
@@ -74,11 +74,11 @@ pub(crate) fn notify_hook(argv: Vec<String>, environment: Arc<Vec<(OsString, OsS
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use anyhow::Result;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_protocol::shell_environment::AKODE_EXEC_SERVER_NOISE_AUTH_TOKEN_ENV_VAR;
|
||||
use akode_utils_absolute_path::test_support::PathBufExt;
|
||||
use akode_utils_absolute_path::test_support::test_path_buf;
|
||||
use anyhow::Result;
|
||||
use pretty_assertions::assert_eq;
|
||||
use serde_json::Value;
|
||||
use serde_json::json;
|
||||
|
||||
@@ -28,7 +28,6 @@ use crate::types::Hook;
|
||||
use crate::types::HookEvent;
|
||||
use crate::types::HookPayload;
|
||||
use crate::types::HookResponse;
|
||||
use async_channel::Receiver;
|
||||
use akode_config::ConfigLayerStack;
|
||||
use akode_plugin::ExecutorPluginHookSource;
|
||||
use akode_plugin::PluginHookSource;
|
||||
@@ -36,6 +35,7 @@ use akode_protocol::ThreadId;
|
||||
use akode_protocol::protocol::HookEventName;
|
||||
use akode_protocol::protocol::HookExecutionMode;
|
||||
use akode_protocol::shell_environment::scrub_non_inheritable_env_vars;
|
||||
use async_channel::Receiver;
|
||||
use std::ffi::OsString;
|
||||
use std::future::Future;
|
||||
use std::sync::Arc;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use chrono::DateTime;
|
||||
use chrono::SecondsFormat;
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use futures::future::BoxFuture;
|
||||
use serde::Serialize;
|
||||
use serde::Serializer;
|
||||
@@ -98,11 +98,11 @@ pub enum HookEvent {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use chrono::TimeZone;
|
||||
use chrono::Utc;
|
||||
use akode_protocol::ThreadId;
|
||||
use akode_utils_absolute_path::test_support::PathBufExt;
|
||||
use akode_utils_absolute_path::test_support::test_path_buf;
|
||||
use chrono::TimeZone;
|
||||
use chrono::Utc;
|
||||
use pretty_assertions::assert_eq;
|
||||
use serde_json::json;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user