aKode 0.9.0: versione, Novità nel README, repository rinominato in imeai-aKode, snapshot della TUI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
20
README.md
20
README.md
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
È un fork di [OpenAI Codex CLI](https://github.com/openai/codex) (Apache-2.0). Da Codex eredita l'interfaccia a terminale, l'esecuzione dei comandi in sandbox, la modifica dei file con patch, MCP, skill, plugin locali e la modalità non interattiva `exec`. Ha però tolto tutto ciò che dipende dai servizi di OpenAI.
|
È un fork di [OpenAI Codex CLI](https://github.com/openai/codex) (Apache-2.0). Da Codex eredita l'interfaccia a terminale, l'esecuzione dei comandi in sandbox, la modifica dei file con patch, MCP, skill, plugin locali e la modalità non interattiva `exec`. Ha però tolto tutto ciò che dipende dai servizi di OpenAI.
|
||||||
|
|
||||||
> **Uso privato.** Questo repository (`git.difonzo.net/andrea/aKode`) non è distribuito né pubblicato.
|
> **Uso privato.** Questo repository (`git.difonzo.net/andrea/imeai-aKode`) non è distribuito né pubblicato.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -30,13 +30,13 @@ Il comando è `akode`, la configurazione sta in `~/.akode` (oppure nella cartell
|
|||||||
## Installazione (macOS Apple Silicon)
|
## Installazione (macOS Apple Silicon)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -fsSL https://git.difonzo.net/andrea/aKode/raw/branch/main/install.sh | sh
|
curl -fsSL https://git.difonzo.net/andrea/imeai-aKode/raw/branch/main/install.sh | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Variante più prudente: scarica lo script, leggilo e poi eseguilo.
|
Variante più prudente: scarica lo script, leggilo e poi eseguilo.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -fsSLO https://git.difonzo.net/andrea/aKode/raw/branch/main/install.sh
|
curl -fsSLO https://git.difonzo.net/andrea/imeai-aKode/raw/branch/main/install.sh
|
||||||
less install.sh
|
less install.sh
|
||||||
sh install.sh
|
sh install.sh
|
||||||
```
|
```
|
||||||
@@ -128,6 +128,20 @@ Il token sta nell'archivio delle chiavi (`provider_api_key_store`, id `telegram-
|
|||||||
|
|
||||||
## Novità
|
## Novità
|
||||||
|
|
||||||
|
### 0.9.0
|
||||||
|
|
||||||
|
- **Cache del prompt più stabile** (misure sul server imeAI):
|
||||||
|
- ordine fisso dei blocchi di contesto: prima le sezioni uguali in ogni sessione (`<skills_instructions>`, permessi), poi quelle che dipendono dal repository o dalla sessione (`<code_map>`, riepilogo della memoria). Prima `<code_map>` stava subito dopo le istruzioni di sistema: c'era o mancava a seconda che l'indice fosse pronto, e cambiava da un repository all'altro, invalidando tutto il resto;
|
||||||
|
- strumenti in ordine stabile: prima quelli di aKode, poi quelli con namespace (server MCP, sotto-agenti), ciascuno per nome; nella sessione resta l'ordine della prima richiesta e gli strumenti che arrivano dopo finiscono in coda, mai in mezzo;
|
||||||
|
- server MCP: la prima richiesta di una sessione aspetta fino a 5 s (prima 1 s) i server ancora in avvio, così l'elenco degli strumenti è completo dall'inizio (`mcp_optional_startup_grace_ms`).
|
||||||
|
- **Attese lunghe dei server locali**: ogni byte ricevuto conta come segno di vita, compresi i commenti SSE e gli eventi `imeai.queue` e `imeai.prefill` del gateway (prima i commenti non azzeravano il timer). Il timeout di inattività vale anche per l'attesa della prima risposta (prima illimitata) ed è di 30 minuti per i server locali (loopback, rete privata, `.local`, `.lan`), 5 minuti per gli altri; si cambia con `stream_idle_timeout_ms` del provider. Niente più keepalive TCP: reqwest chiudeva dopo 60 s una connessione muta quando le sonde non tornavano indietro (succede attraverso NetBird), e una lettura del prompt più lunga di un minuto ripartiva da capo; misurato sul server: prima richiesta a freddo di 82 s arrivata alla fine senza ripetizioni.
|
||||||
|
- **Repository rinominato** in `git.difonzo.net/andrea/imeai-aKode`: installatore, `akode update` e link aggiornati; il vecchio indirizzo risponde con un redirect.
|
||||||
|
- **Compattazione più leggera**: prima del riassunto, l'output degli strumenti più vecchi (tutti tranne gli ultimi 3, sopra i 400 caratteri) diventa un segnaposto breve; le chiamate restano visibili. Il prompt del riassunto si accorcia di molto, e su CPU ogni token in meno è tempo in meno. La compattazione usa sempre il provider configurato (verificato, con un test).
|
||||||
|
- **Protezione dai loop, in stile Gemini CLI**, insieme a `[agent] max_repeated_failures`:
|
||||||
|
- `[agent] max_identical_tool_calls` (5): stessa chiamata con gli stessi argomenti per 5 volte di fila, qualunque sia il risultato; esclusi gli strumenti di attesa (`write_stdin`, `wait_agent`);
|
||||||
|
- `[agent] max_repeated_text` (10): lo stesso pezzo di testo ripetuto 10 volte di seguito mentre arriva, nella risposta o nel ragionamento; esclusi i blocchi di codice e i separatori. La risposta si ferma subito invece di andare avanti fino al limite di token.
|
||||||
|
- **Cancellazioni ricorsive protette**: `rm -r`/`rm -rf` e `find … -delete` della radice, della home, della radice del repository, della cartella di lavoro, di percorsi fuori dalla cartella di lavoro o calcolati a runtime (`$VAR`, `$(…)`, `xargs`) chiedono sempre la conferma dell'utente, anche con regole che li permetterebbero; in accesso completo, dove nessuno può confermare, vengono rifiutati.
|
||||||
|
|
||||||
### 0.8.0
|
### 0.8.0
|
||||||
|
|
||||||
- **Grafo del codice** (memoria di imeAI, fase 4): aKode indicizza in locale il repository della cartella di lavoro con tree-sitter e git, senza modello e senza mandare il codice da nessuna parte. Linguaggi: Rust, TypeScript/TSX/JavaScript, Python, Go, Swift, Bash; di TOML, JSON e YAML solo la struttura (sezioni e chiavi). Indice SQLite per repository in `~/.akode/code-graph/`, fuori dal checkout; aggiornamento incrementale da `git diff` rispetto all'ultimo commit indicizzato più `git status` (su akode-rs: prima indicizzazione 4,2 s, aggiornamenti 57-150 ms).
|
- **Grafo del codice** (memoria di imeAI, fase 4): aKode indicizza in locale il repository della cartella di lavoro con tree-sitter e git, senza modello e senza mandare il codice da nessuna parte. Linguaggi: Rust, TypeScript/TSX/JavaScript, Python, Go, Swift, Bash; di TOML, JSON e YAML solo la struttura (sezioni e chiavi). Indice SQLite per repository in `~/.akode/code-graph/`, fuori dal checkout; aggiornamento incrementale da `git diff` rispetto all'ultimo commit indicizzato più `git status` (su akode-rs: prima indicizzazione 4,2 s, aggiornamenti 57-150 ms).
|
||||||
|
|||||||
316
akode-rs/Cargo.lock
generated
316
akode-rs/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -158,7 +158,7 @@ members = [
|
|||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.8.0"
|
version = "0.9.0"
|
||||||
# Track the edition for all workspace crates in one place. Individual
|
# Track the edition for all workspace crates in one place. Individual
|
||||||
# crates can still override this value, but keeping it here means new
|
# crates can still override this value, but keeping it here means new
|
||||||
# crates created with `cargo new -w ...` automatically inherit the 2024
|
# crates created with `cargo new -w ...` automatically inherit the 2024
|
||||||
|
|||||||
@@ -8,13 +8,13 @@ use wiremock::ResponseTemplate;
|
|||||||
use wiremock::matchers::method;
|
use wiremock::matchers::method;
|
||||||
use wiremock::matchers::path;
|
use wiremock::matchers::path;
|
||||||
|
|
||||||
const LATEST_PATH: &str = "/api/v1/repos/andrea/aKode/releases/latest";
|
const LATEST_PATH: &str = "/api/v1/repos/andrea/imeai-aKode/releases/latest";
|
||||||
|
|
||||||
fn akode_update(akode_home: &Path, server: &MockServer) -> Result<assert_cmd::Command> {
|
fn akode_update(akode_home: &Path, server: &MockServer) -> Result<assert_cmd::Command> {
|
||||||
let mut cmd = assert_cmd::Command::new(akode_utils_cargo_bin::cargo_bin("akode")?);
|
let mut cmd = assert_cmd::Command::new(akode_utils_cargo_bin::cargo_bin("akode")?);
|
||||||
cmd.env("AKODE_HOME", akode_home).args([
|
cmd.env("AKODE_HOME", akode_home).args([
|
||||||
"-c",
|
"-c",
|
||||||
&format!("update.repo_url=\"{}/andrea/aKode\"", server.uri()),
|
&format!("update.repo_url=\"{}/andrea/imeai-aKode\"", server.uri()),
|
||||||
"update",
|
"update",
|
||||||
]);
|
]);
|
||||||
Ok(cmd)
|
Ok(cmd)
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ pub enum HistoryPersistence {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Public Gitea repository that publishes aKode releases.
|
/// Public Gitea repository that publishes aKode releases.
|
||||||
pub const DEFAULT_UPDATE_REPO_URL: &str = "https://git.difonzo.net/andrea/aKode";
|
pub const DEFAULT_UPDATE_REPO_URL: &str = "https://git.difonzo.net/andrea/imeai-aKode";
|
||||||
|
|
||||||
/// `[update]`: where `akode update` looks for releases and whether the TUI checks on startup.
|
/// `[update]`: where `akode update` looks for releases and whether the TUI checks on startup.
|
||||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, Default, JsonSchema)]
|
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, Default, JsonSchema)]
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ expression: "render_bottom_popup(&app.chat_widget,\nwidth).replace(r\"C:\\cli-bu
|
|||||||
│
|
│
|
||||||
|
|
||||||
Update daemon and exit aKode?
|
Update daemon and exit aKode?
|
||||||
Use this CLI package v0.8.0 from /x/cli-build/bin/akode. Copy the
|
Use this CLI package v0.9.0 from /x/cli-build/bin/akode. Copy the
|
||||||
complete package and pin it against automatic updates.
|
complete package and pin it against automatic updates.
|
||||||
This may restart the daemon and interrupt active or queued work.
|
This may restart the daemon and interrupt active or queued work.
|
||||||
Codex exits to update in this terminal. Relaunch it afterward.
|
Codex exits to update in this terminal. Relaunch it afterward.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: "format!(\"enabled:\\n{}\\n---\\ndisabled:\\n{}\", text(after), text
|
|||||||
---
|
---
|
||||||
enabled:
|
enabled:
|
||||||
|
|
||||||
▄▄████▄▄ aKode v0.8.0
|
▄▄████▄▄ aKode v0.9.0
|
||||||
██▀▀██▀▀██ GPT-5.6-Sol · mock
|
██▀▀██▀▀██ GPT-5.6-Sol · mock
|
||||||
██▄▄██▄▄██ /tmp/project
|
██▄▄██▄▄██ /tmp/project
|
||||||
██▀████▀██
|
██▀████▀██
|
||||||
@@ -50,7 +50,7 @@ enabled:
|
|||||||
---
|
---
|
||||||
disabled:
|
disabled:
|
||||||
|
|
||||||
▄▄████▄▄ aKode v0.8.0
|
▄▄████▄▄ aKode v0.9.0
|
||||||
██▀▀██▀▀██ GPT-5.6-Sol · mock
|
██▀▀██▀▀██ GPT-5.6-Sol · mock
|
||||||
██▄▄██▄▄██ /tmp/project
|
██▄▄██▄▄██ /tmp/project
|
||||||
██▀████▀██
|
██▀████▀██
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ source: tui/src/app/tests.rs
|
|||||||
expression: rendered
|
expression: rendered
|
||||||
---
|
---
|
||||||
|
|
||||||
▄▄████▄▄ aKode v0.8.0
|
▄▄████▄▄ aKode v0.9.0
|
||||||
██▀▀██▀▀██ gpt-test · mock
|
██▀▀██▀▀██ gpt-test · mock
|
||||||
██▄▄██▄▄██ <thread cwd>
|
██▄▄██▄▄██ <thread cwd>
|
||||||
██▀████▀██
|
██▀████▀██
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ source: tui/src/app/tests/realtime_requests.rs
|
|||||||
expression: "normalize_voice_snapshot_directory(&rendered, &app.config.cwd)"
|
expression: "normalize_voice_snapshot_directory(&rendered, &app.config.cwd)"
|
||||||
---
|
---
|
||||||
|
|
||||||
▄▄████▄▄ aKode v0.8.0
|
▄▄████▄▄ aKode v0.9.0
|
||||||
██▀▀██▀▀██ gpt-test · mock
|
██▀▀██▀▀██ gpt-test · mock
|
||||||
██▄▄██▄▄██ /tmp/project
|
██▄▄██▄▄██ /tmp/project
|
||||||
██▀████▀██
|
██▀████▀██
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ source: tui/src/app/tests/realtime_requests.rs
|
|||||||
expression: "normalize_voice_snapshot_directory(&rendered, &app.config.cwd)"
|
expression: "normalize_voice_snapshot_directory(&rendered, &app.config.cwd)"
|
||||||
---
|
---
|
||||||
|
|
||||||
▄▄████▄▄ aKode v0.8.0
|
▄▄████▄▄ aKode v0.9.0
|
||||||
██▀▀██▀▀██ gpt-test · mock
|
██▀▀██▀▀██ gpt-test · mock
|
||||||
██▄▄██▄▄██ /tmp/project
|
██▄▄██▄▄██ /tmp/project
|
||||||
██▀████▀██
|
██▀████▀██
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ Restored owner:
|
|||||||
|
|
||||||
127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s
|
127.0.0.1:9 · gpt-test · /tmp/project ctx 0% · -- t/s
|
||||||
|
|
||||||
▄▄████▄▄ aKode v0.8.0
|
▄▄████▄▄ aKode v0.9.0
|
||||||
██▀▀██▀▀██ gpt-test · mock
|
██▀▀██▀▀██ gpt-test · mock
|
||||||
██▄▄██▄▄██ /tmp/project
|
██▄▄██▄▄██ /tmp/project
|
||||||
██▀████▀██
|
██▀████▀██
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ source: tui/src/app/tests/realtime_requests.rs
|
|||||||
expression: "normalize_voice_snapshot_directory(&rendered, &app.config.cwd)"
|
expression: "normalize_voice_snapshot_directory(&rendered, &app.config.cwd)"
|
||||||
---
|
---
|
||||||
|
|
||||||
▄▄████▄▄ aKode v0.8.0
|
▄▄████▄▄ aKode v0.9.0
|
||||||
██▀▀██▀▀██ gpt-test · mock
|
██▀▀██▀▀██ gpt-test · mock
|
||||||
██▄▄██▄▄██ /tmp/project
|
██▄▄██▄▄██ /tmp/project
|
||||||
██▀████▀██
|
██▀████▀██
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
source: tui/src/app/tests/new_session_tests.rs
|
source: tui/src/app/tests/new_session_tests.rs
|
||||||
expression: "normalize_snapshot_paths(render_bottom_popup(&app.chat_widget, 80))"
|
expression: "normalize_snapshot_paths(render_bottom_popup(&app.chat_widget, 80))"
|
||||||
---
|
---
|
||||||
▄▄████▄▄ aKode v0.8.0
|
▄▄████▄▄ aKode v0.9.0
|
||||||
██▀▀██▀▀██ loading · mock
|
██▀▀██▀▀██ loading · mock
|
||||||
██▄▄██▄▄██ /tmp/project
|
██▄▄██▄▄██ /tmp/project
|
||||||
██▀████▀██
|
██▀████▀██
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: "normalize_snapshot_paths(normalize_agent_center_snapshot(snapshots.
|
|||||||
---
|
---
|
||||||
80 columns
|
80 columns
|
||||||
|
|
||||||
▄▄████▄▄ aKode v0.8.0
|
▄▄████▄▄ aKode v0.9.0
|
||||||
██▀▀██▀▀██ gpt-test · mock
|
██▀▀██▀▀██ gpt-test · mock
|
||||||
██▄▄██▄▄██ /tmp/project
|
██▄▄██▄▄██ /tmp/project
|
||||||
██▀████▀██
|
██▀████▀██
|
||||||
@@ -26,7 +26,7 @@ expression: "normalize_snapshot_paths(normalize_agent_center_snapshot(snapshots.
|
|||||||
|
|
||||||
32 columns
|
32 columns
|
||||||
|
|
||||||
▄▄████▄▄ aKode v0.8.0
|
▄▄████▄▄ aKode v0.9.0
|
||||||
██▀▀██▀▀██ gpt-test · mock
|
██▀▀██▀▀██ gpt-test · mock
|
||||||
██▄▄██▄▄██ /tmp/project
|
██▄▄██▄▄██ /tmp/project
|
||||||
██▀████▀██
|
██▀████▀██
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ source: tui/src/chatwidget/tests/permissions.rs
|
|||||||
expression: popup
|
expression: popup
|
||||||
---
|
---
|
||||||
Set up the aKode agent sandbox to protect your files and control network access. Learn more
|
Set up the aKode agent sandbox to protect your files and control network access. Learn more
|
||||||
<https://git.difonzo.net/andrea/aKode>
|
<https://git.difonzo.net/andrea/imeai-aKode>
|
||||||
|
|
||||||
|
|
||||||
› 1. Set up default sandbox (requires Administrator permissions)
|
› 1. Set up default sandbox (requires Administrator permissions)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: "render_bottom_popup(&chat, 120)"
|
|||||||
---
|
---
|
||||||
Your organization requires the default aKode agent sandbox to continue. Set it up to protect your files and control
|
Your organization requires the default aKode agent sandbox to continue. Set it up to protect your files and control
|
||||||
network access.
|
network access.
|
||||||
Learn more <https://git.difonzo.net/andrea/aKode>
|
Learn more <https://git.difonzo.net/andrea/imeai-aKode>
|
||||||
|
|
||||||
|
|
||||||
› 1. Set up default sandbox (requires Administrator permissions)
|
› 1. Set up default sandbox (requires Administrator permissions)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ expression: popup
|
|||||||
Couldn't set up your sandbox with Administrator permissions
|
Couldn't set up your sandbox with Administrator permissions
|
||||||
|
|
||||||
Your organization requires the default sandbox before aKode can continue.
|
Your organization requires the default sandbox before aKode can continue.
|
||||||
Learn more <https://git.difonzo.net/andrea/aKode>
|
Learn more <https://git.difonzo.net/andrea/imeai-aKode>
|
||||||
|
|
||||||
|
|
||||||
› 1. Try setting up admin sandbox again
|
› 1. Try setting up admin sandbox again
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ source: tui/src/chatwidget/tests/permissions.rs
|
|||||||
expression: "render_bottom_popup(&chat, 100)"
|
expression: "render_bottom_popup(&chat, 100)"
|
||||||
---
|
---
|
||||||
Set up the aKode agent sandbox to protect your files and control network access. Learn more
|
Set up the aKode agent sandbox to protect your files and control network access. Learn more
|
||||||
<https://git.difonzo.net/andrea/aKode>
|
<https://git.difonzo.net/andrea/imeai-aKode>
|
||||||
|
|
||||||
|
|
||||||
› 1. Use non-admin sandbox (higher risk if prompt injected)
|
› 1. Use non-admin sandbox (higher risk if prompt injected)
|
||||||
|
|||||||
@@ -1006,7 +1006,7 @@ async fn startup_windows_sandbox_prompt_blocks_disallowed_unelevated_fallback()
|
|||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn windows_sandbox_help_links_keep_complete_wrapped_destinations() {
|
async fn windows_sandbox_help_links_keep_complete_wrapped_destinations() {
|
||||||
let url = "https://git.difonzo.net/andrea/aKode";
|
let url = "https://git.difonzo.net/andrea/imeai-aKode";
|
||||||
for fallback in [false, true] {
|
for fallback in [false, true] {
|
||||||
let (mut chat, _rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await;
|
let (mut chat, _rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await;
|
||||||
let preset = builtin_approval_presets()
|
let preset = builtin_approval_presets()
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ expression: visible
|
|||||||
Set up the aKode agent sandbox to
|
Set up the aKode agent sandbox to
|
||||||
protect your files and control
|
protect your files and control
|
||||||
network access. Learn more
|
network access. Learn more
|
||||||
<https://git.difonzo.net/andrea/aKod
|
<https://git.difonzo.net/andrea/imea
|
||||||
e>
|
i-aKode>
|
||||||
|
|
||||||
|
|
||||||
› 1. Set up default sandbox (requires
|
› 1. Set up default sandbox (requires
|
||||||
|
|||||||
@@ -35,12 +35,12 @@ impl ChatWidget {
|
|||||||
header.push(*Box::new(
|
header.push(*Box::new(
|
||||||
crate::terminal_hyperlinks::HyperlinkText::new(if allow_unelevated {
|
crate::terminal_hyperlinks::HyperlinkText::new(if allow_unelevated {
|
||||||
vec![
|
vec![
|
||||||
line!["Set up the aKode agent sandbox to protect your files and control network access. Learn more <https://git.difonzo.net/andrea/aKode>"],
|
line!["Set up the aKode agent sandbox to protect your files and control network access. Learn more <https://git.difonzo.net/andrea/imeai-aKode>"],
|
||||||
]
|
]
|
||||||
} else {
|
} else {
|
||||||
vec![
|
vec![
|
||||||
line!["Your organization requires the default aKode agent sandbox to continue. Set it up to protect your files and control network access."],
|
line!["Your organization requires the default aKode agent sandbox to continue. Set it up to protect your files and control network access."],
|
||||||
line!["Learn more <https://git.difonzo.net/andrea/aKode>"],
|
line!["Learn more <https://git.difonzo.net/andrea/imeai-aKode>"],
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
));
|
));
|
||||||
@@ -164,7 +164,7 @@ impl ChatWidget {
|
|||||||
"Your organization requires the default sandbox before aKode can continue."
|
"Your organization requires the default sandbox before aKode can continue."
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
lines.push(line!["Learn more <https://git.difonzo.net/andrea/aKode>"]);
|
lines.push(line!["Learn more <https://git.difonzo.net/andrea/imeai-aKode>"]);
|
||||||
|
|
||||||
let mut header = ColumnRenderable::new();
|
let mut header = ColumnRenderable::new();
|
||||||
header.push(crate::terminal_hyperlinks::HyperlinkText::new(lines));
|
header.push(crate::terminal_hyperlinks::HyperlinkText::new(lines));
|
||||||
|
|||||||
@@ -442,7 +442,7 @@ pub(crate) fn empty_mcp_output() -> WebHyperlinkHistoryCell {
|
|||||||
let mut docs_line = HyperlinkLine::new(Line::from(" See the "));
|
let mut docs_line = HyperlinkLine::new(Line::from(" See the "));
|
||||||
docs_line.push_span(
|
docs_line.push_span(
|
||||||
"MCP docs".underlined(),
|
"MCP docs".underlined(),
|
||||||
Some("https://git.difonzo.net/andrea/aKode"),
|
Some("https://git.difonzo.net/andrea/imeai-aKode"),
|
||||||
);
|
);
|
||||||
docs_line.push_span(" to configure them.".into(), /*destination*/ None);
|
docs_line.push_span(" to configure them.".into(), /*destination*/ None);
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ source: tui/src/history_cell/tests.rs
|
|||||||
expression: rendered
|
expression: rendered
|
||||||
---
|
---
|
||||||
|
|
||||||
▄▄████▄▄ aKode v0.8.0
|
▄▄████▄▄ aKode v0.9.0
|
||||||
██▀▀██▀▀██ gpt-5 · mock
|
██▀▀██▀▀██ gpt-5 · mock
|
||||||
██▄▄██▄▄██ /tmp/project
|
██▄▄██▄▄██ /tmp/project
|
||||||
██▀████▀██
|
██▀████▀██
|
||||||
|
|||||||
@@ -424,7 +424,7 @@ fn composite_cell_preserves_child_web_links() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn empty_mcp_output_preserves_docs_hyperlink() {
|
fn empty_mcp_output_preserves_docs_hyperlink() {
|
||||||
let destination = "https://git.difonzo.net/andrea/aKode";
|
let destination = "https://git.difonzo.net/andrea/imeai-aKode";
|
||||||
let cell: Box<dyn HistoryCell> = Box::new(empty_mcp_output());
|
let cell: Box<dyn HistoryCell> = Box::new(empty_mcp_output());
|
||||||
|
|
||||||
insta::assert_snapshot!(render_lines(&cell.display_lines(/*width*/ 80)).join("\n"), @r"
|
insta::assert_snapshot!(render_lines(&cell.display_lines(/*width*/ 80)).join("\n"), @r"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ expression: rendered
|
|||||||
|
|
||||||
Scegli i colori; potrai cambiarli con /theme.
|
Scegli i colori; potrai cambiarli con /theme.
|
||||||
|
|
||||||
1. Automatico │ ▄▄████▄▄ aKode v0.8.0
|
1. Automatico │ ▄▄████▄▄ aKode v0.9.0
|
||||||
2. Scuro │ ██▀▀██▀▀██ qwen3.6-35b-a3b
|
2. Scuro │ ██▀▀██▀▀██ qwen3.6-35b-a3b
|
||||||
3. Chiaro │ ██▄▄██▄▄██ ~/progetto
|
3. Chiaro │ ██▄▄██▄▄██ ~/progetto
|
||||||
4. Alto contrasto │ ██▀████▀██
|
4. Alto contrasto │ ██▀████▀██
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ expression: rendered
|
|||||||
|
|
||||||
Scegli i colori; potrai cambiarli con /theme.
|
Scegli i colori; potrai cambiarli con /theme.
|
||||||
|
|
||||||
1. Automatico │ ▄▄████▄▄ aKode v0.8.0
|
1. Automatico │ ▄▄████▄▄ aKode v0.9.0
|
||||||
2. Scuro │ ██▀▀██▀▀██ qwen3.6-35b-a3b
|
2. Scuro │ ██▀▀██▀▀██ qwen3.6-35b-a3b
|
||||||
3. Chiaro │ ██▄▄██▄▄██ ~/progetto
|
3. Chiaro │ ██▄▄██▄▄██ ~/progetto
|
||||||
4. Alto contrasto │ ██▀████▀██
|
4. Alto contrasto │ ██▀████▀██
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Model: gpt-5.1-codex (reasoning none, summaries auto)
|
Model: gpt-5.1-codex (reasoning none, summaries auto)
|
||||||
Directory: [[workspace]]
|
Directory: [[workspace]]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Model: gpt-5.1-codex (reasoning none, summaries auto)
|
Model: gpt-5.1-codex (reasoning none, summaries auto)
|
||||||
Directory: [[workspace]]
|
Directory: [[workspace]]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
||||||
Directory: [[workspace]]
|
Directory: [[workspace]]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
||||||
Directory: [[workspace]]
|
Directory: [[workspace]]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Model: gpt-5.1-codex-max (reasoning high, summaries detailed)
|
Model: gpt-5.1-codex-max (reasoning high, summaries detailed)
|
||||||
Directory: [[workspace]]
|
Directory: [[workspace]]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Server: Local background server
|
Server: Local background server
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Server: unix:///tmp/codex-home/app-server-control/app-server-
|
Server: unix:///tmp/codex-home/app-server-control/app-server-
|
||||||
control.sock (v0.133.0)
|
control.sock (v0.133.0)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
||||||
Directory: [[workspace]]
|
Directory: [[workspace]]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
||||||
Directory: [[workspace]]
|
Directory: [[workspace]]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
||||||
Directory: [[workspace]]
|
Directory: [[workspace]]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
||||||
Directory: [[workspace]]
|
Directory: [[workspace]]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
||||||
Directory: [[workspace]]
|
Directory: [[workspace]]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Model: ガパガパガパガ
|
Model: ガパガパガパガ
|
||||||
パ-model (reasoning
|
パ-model (reasoning
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Model: gpt-5.1-codex-max (reasoning high, summaries
|
Model: gpt-5.1-codex-max (reasoning high, summaries
|
||||||
detailed)
|
detailed)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Model: gpt-5.1-codex-max (reasoning medium, summaries auto)
|
Model: gpt-5.1-codex-max (reasoning medium, summaries auto)
|
||||||
Directory: [[workspace]]
|
Directory: [[workspace]]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ expression: sanitized
|
|||||||
---
|
---
|
||||||
/status
|
/status
|
||||||
|
|
||||||
>_ aKode (v0.8.0)
|
>_ aKode (v0.9.0)
|
||||||
|
|
||||||
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
||||||
Directory: [[workspace]]
|
Directory: [[workspace]]
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ use wiremock::matchers::method;
|
|||||||
use wiremock::matchers::path;
|
use wiremock::matchers::path;
|
||||||
|
|
||||||
const TARGET: &str = "aarch64-apple-darwin";
|
const TARGET: &str = "aarch64-apple-darwin";
|
||||||
const LATEST_PATH: &str = "/api/v1/repos/andrea/aKode/releases/latest";
|
const LATEST_PATH: &str = "/api/v1/repos/andrea/imeai-aKode/releases/latest";
|
||||||
|
|
||||||
fn repo_url(server: &MockServer) -> String {
|
fn repo_url(server: &MockServer) -> String {
|
||||||
format!("{}/andrea/aKode", server.uri())
|
format!("{}/andrea/imeai-aKode", server.uri())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn client() -> reqwest::Client {
|
fn client() -> reqwest::Client {
|
||||||
@@ -70,22 +70,22 @@ fn installed_binary(dir: &Path) -> PathBuf {
|
|||||||
fn api_url_is_derived_from_repo_url() {
|
fn api_url_is_derived_from_repo_url() {
|
||||||
for (repo, expected) in [
|
for (repo, expected) in [
|
||||||
(
|
(
|
||||||
"https://git.difonzo.net/andrea/aKode",
|
"https://git.difonzo.net/andrea/imeai-aKode",
|
||||||
"https://git.difonzo.net/api/v1/repos/andrea/aKode/releases/latest",
|
"https://git.difonzo.net/api/v1/repos/andrea/imeai-aKode/releases/latest",
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
"https://git.difonzo.net/andrea/aKode.git/",
|
"https://git.difonzo.net/andrea/imeai-aKode.git/",
|
||||||
"https://git.difonzo.net/api/v1/repos/andrea/aKode/releases/latest",
|
"https://git.difonzo.net/api/v1/repos/andrea/imeai-aKode/releases/latest",
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
"https://example.com/gitea/andrea/aKode",
|
"https://example.com/gitea/andrea/imeai-aKode",
|
||||||
"https://example.com/gitea/api/v1/repos/andrea/aKode/releases/latest",
|
"https://example.com/gitea/api/v1/repos/andrea/imeai-aKode/releases/latest",
|
||||||
),
|
),
|
||||||
] {
|
] {
|
||||||
assert_eq!(latest_release_api_url(repo).unwrap().as_str(), expected);
|
assert_eq!(latest_release_api_url(repo).unwrap().as_str(), expected);
|
||||||
}
|
}
|
||||||
assert!(latest_release_api_url("https://git.difonzo.net/andrea").is_err());
|
assert!(latest_release_api_url("https://git.difonzo.net/andrea").is_err());
|
||||||
assert!(latest_release_api_url("ftp://git.difonzo.net/andrea/aKode").is_err());
|
assert!(latest_release_api_url("ftp://git.difonzo.net/andrea/imeai-aKode").is_err());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Installatore di aKode.
|
# Installatore di aKode.
|
||||||
#
|
#
|
||||||
# curl -fsSL https://git.difonzo.net/andrea/aKode/raw/branch/main/install.sh | sh
|
# curl -fsSL https://git.difonzo.net/andrea/imeai-aKode/raw/branch/main/install.sh | sh
|
||||||
#
|
#
|
||||||
# Scarica l'ultima release (oppure quella indicata con AKODE_VERSION=x.y.z), ne verifica lo
|
# Scarica l'ultima release (oppure quella indicata con AKODE_VERSION=x.y.z), ne verifica lo
|
||||||
# SHA-256 e la installa in ~/.local/share/akode/package, con il comando in ~/.local/bin/akode.
|
# SHA-256 e la installa in ~/.local/share/akode/package, con il comando in ~/.local/bin/akode.
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
REPO_HOST="https://git.difonzo.net"
|
REPO_HOST="https://git.difonzo.net"
|
||||||
REPO_PATH="andrea/aKode"
|
REPO_PATH="andrea/imeai-aKode"
|
||||||
API="$REPO_HOST/api/v1/repos/$REPO_PATH"
|
API="$REPO_HOST/api/v1/repos/$REPO_PATH"
|
||||||
|
|
||||||
DATA_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/akode"
|
DATA_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/akode"
|
||||||
|
|||||||
Reference in New Issue
Block a user