Rinomina: crate akode-*, cartelle akode-rs/ e akode-cli/, binario akode, ~/.akode, AKODE_* (A)
Riapplica la fase 5 di aKode (86e7c72e) sulla base ripulita:
- crate codex-* -> akode-*, codex-rs -> akode-rs, codex-cli -> akode-cli, binario e ausiliari akode;
- ~/.codex -> ~/.akode, CODEX_HOME -> AKODE_HOME, variabili CODEX_* -> AKODE_*, .codex/ -> .akode/ di progetto;
nessun fallback a ~/.codex o a CODEX_*;
- testi per l'utente "Codex" -> "aKode"; testi verso il modello e istruzioni di sistema invariati;
- snapshot insta rinominati (non ancora rigenerati).
I conflitti con la base ripulita sono stati risolti riapplicando la rinomina ai file senza le
funzioni di imeAI (script di mappa dei token per file).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
49
akode-rs/code-mode-runtime/tests/jit.rs
Normal file
49
akode-rs/code-mode-runtime/tests/jit.rs
Normal file
@@ -0,0 +1,49 @@
|
||||
use akode_code_mode_protocol::NoopCodeModeSessionDelegate;
|
||||
use akode_code_mode_runtime::ExecuteRequest;
|
||||
use akode_code_mode_runtime::InProcessCodeModeSession;
|
||||
use akode_code_mode_runtime::RuntimeResponse;
|
||||
use akode_code_mode_runtime::V8JitMode;
|
||||
use akode_code_mode_runtime::initialize_v8;
|
||||
use pretty_assertions::assert_eq;
|
||||
use std::sync::Arc;
|
||||
|
||||
#[tokio::test]
|
||||
async fn code_mode_runs_with_jit_disabled() {
|
||||
initialize_v8(V8JitMode::Disabled).expect("initialize V8 without JIT");
|
||||
|
||||
let service = InProcessCodeModeSession::new();
|
||||
let started = service
|
||||
.execute(
|
||||
ExecuteRequest {
|
||||
tool_call_id: "call_1".to_string(),
|
||||
enabled_tools: Vec::new(),
|
||||
source: "21 * 2;".to_string(),
|
||||
yield_time_ms: None,
|
||||
max_output_tokens: None,
|
||||
},
|
||||
Arc::new(NoopCodeModeSessionDelegate),
|
||||
/*preempt*/ None,
|
||||
)
|
||||
.await
|
||||
.expect("start code-mode cell");
|
||||
let cell_id = started.cell_id.clone();
|
||||
let response = started
|
||||
.initial_response()
|
||||
.await
|
||||
.expect("execute code-mode cell");
|
||||
|
||||
assert_eq!(
|
||||
response,
|
||||
RuntimeResponse::Result {
|
||||
code_mode_host_duration: None,
|
||||
cell_id,
|
||||
content_items: Vec::new(),
|
||||
result_buffered_for: std::time::Duration::ZERO,
|
||||
error_text: None,
|
||||
}
|
||||
);
|
||||
assert_eq!(
|
||||
initialize_v8(V8JitMode::Enabled),
|
||||
Err("V8 was already initialized with JIT disabled".to_string())
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user