aKode fase 3: provider locali, chiavi per provider, modelli dal server, SearXNG

- Provider: rimossi openai, Bedrock e GCP integrati e ogni fallback a OpenAI;
  restano ollama, lmstudio e i provider personalizzati. Senza provider, exec e
  TUI mostrano come configurarlo.
- Chiave per provider: api_key = "keyring", provider_api_key_store =
  auto|keyring|file (fallback su file 0600 / ACL Windows); `codex login
  --provider <id> --with-api-key`, `logout --provider`; login status e doctor
  mostrano dove sta la chiave senza rivelarla.
- Modelli letti da GET {base_url}/models; contesto da config, poi dal server
  (/props, meta.n_ctx), poi 32768; apply_patch come tool function; niente tool
  ospitati; niente piu' avviso "metadata not found".
- Unione dei soli messaggi system/developer iniziali in un unico system;
  quelli successivi restano al loro posto come user (cache del server
  preservata: turno N prefisso esatto del turno N+1).
- Modelli ausiliari (memorie, guardian-v2) = modello di sessione se il
  preferito gpt-* non e' nel catalogo.
- Ricerca web: crate web-tools, backend SearXNG con web_search e web_fetch
  (protezione SSRF); senza backend nessuno strumento web.
- Skill: rimossa openai-docs; skill-installer punta a git.difonzo.net.
- apply_patch accetta gli header @@ -a,b +c,d @@ dei diff unificati.
- Rimossi resti: request_plugin_install, AppsInstructions, --cyber-access-program,
  URL updater/realtime predefiniti.
- Fix: importazione sessioni con provider vuoto.
- Istruzioni di sistema invariate. Test: cancellati solo quelli del codice
  rimosso, test di sicurezza adattati; restano solo fallimenti d'ambiente.
- Prova reale su imeAI + SearXNG: risposta, modifica file, web_search,
  cache riusata, connessioni solo verso .25 e .57.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-11 02:11:45 +01:00
parent 9e33707b8e
commit e39aae0085
545 changed files with 9742 additions and 24503 deletions

View File

@@ -17,7 +17,7 @@ Settings:
stream: true
tool_choice: "auto"
-- request 1 (turn) --
00:additional_tools/developer (3; hash=bf13940dee826ebd):
00:additional_tools/developer (2; hash=439dcadc72baaea1):
- namespace/functions; hash=028af59ad835936d
- function/exec_command
- function/write_stdin
@@ -34,8 +34,6 @@ Settings:
- function/send_input
- function/spawn_agent
- function/wait_agent
- namespace/web: Tools in the web namespace.; hash=0037b1ed8d50fab5
- function/run
01:message/developer:
Retain these base instructions.
02:message/developer[4]:
@@ -47,9 +45,8 @@ Settings:
- `r0` = `<SKILLS_ROOT>`
- `r1` = `<SKILLS_ROOT>/.system`
### Available skills
- openai-docs: API first-timers, Codex/Work Q&A. If the user already has an OpenAI API integration, skip...upplied text or data. (file: r1/openai-docs/SKILL.md) [hash=8ba7f79795ddc1cb]
- skill-creator: Create or update a Codex skill with appropriately scoped instructions and any needed supporting resources. (file: r1/skill-creator/SKILL.md)
- skill-installer: Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo pat...g private repos). (file: r1/skill-installer/SKILL.md) [hash=80e87da510d34d88]
- skill-installer: Install aKode skills into $CODEX_HOME/skills from the default skills repository (the ...g private repos). (file: r1/skill-installer/SKILL.md) [hash=50f61366dff05eec]
- app-store-screenshots: App Store and Google Play screenshot creation with exact platform specs. Covers...ore listing (file: r0/app-store-screenshots/SKILL.md) [hash=3f178aa58b5c4f8e]
- assistant-ui: Overview and router for assistant-ui, the React library for building AI chat interfaces ...d by those siblings. (file: r0/assistant-ui/SKILL.md) [hash=61291772e6f2139c]
- find-skills: Helps users discover and install agent skills when they ask questions like "how do I do X...an installable skill. (file: r0/find-skills/SKILL.md) [hash=48b9e99d9200af8d]
@@ -82,7 +79,7 @@ Settings:
## Window 2 (after request 2: input repeated)
Settings: same as window 1
-- request 3 (turn) --
00:additional_tools/developer (3; hash=bf13940dee826ebd):
00:additional_tools/developer (2; hash=439dcadc72baaea1):
- namespace/functions; hash=028af59ad835936d
- function/exec_command
- function/write_stdin
@@ -99,8 +96,6 @@ Settings: same as window 1
- function/send_input
- function/spawn_agent
- function/wait_agent
- namespace/web: Tools in the web namespace.; hash=0037b1ed8d50fab5
- function/run
01:message/developer:
Retain these base instructions.
02:message/developer[4]:
@@ -112,9 +107,8 @@ Settings: same as window 1
- `r0` = `<SKILLS_ROOT>`
- `r1` = `<SKILLS_ROOT>/.system`
### Available skills
- openai-docs: API first-timers, Codex/Work Q&A. If the user already has an OpenAI API integration, skip...upplied text or data. (file: r1/openai-docs/SKILL.md) [hash=8ba7f79795ddc1cb]
- skill-creator: Create or update a Codex skill with appropriately scoped instructions and any needed supporting resources. (file: r1/skill-creator/SKILL.md)
- skill-installer: Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo pat...g private repos). (file: r1/skill-installer/SKILL.md) [hash=80e87da510d34d88]
- skill-installer: Install aKode skills into $CODEX_HOME/skills from the default skills repository (the ...g private repos). (file: r1/skill-installer/SKILL.md) [hash=50f61366dff05eec]
- app-store-screenshots: App Store and Google Play screenshot creation with exact platform specs. Covers...ore listing (file: r0/app-store-screenshots/SKILL.md) [hash=3f178aa58b5c4f8e]
- assistant-ui: Overview and router for assistant-ui, the React library for building AI chat interfaces ...d by those siblings. (file: r0/assistant-ui/SKILL.md) [hash=61291772e6f2139c]
- find-skills: Helps users discover and install agent skills when they ask questions like "how do I do X...an installable skill. (file: r0/find-skills/SKILL.md) [hash=48b9e99d9200af8d]
@@ -146,7 +140,7 @@ Settings: same as window 1
## Window 3 (after request 3: input repeated)
Settings: same as window 1
-- request 4 (turn) --
00:additional_tools/developer (3; hash=bf13940dee826ebd):
00:additional_tools/developer (2; hash=439dcadc72baaea1):
- namespace/functions; hash=028af59ad835936d
- function/exec_command
- function/write_stdin
@@ -163,8 +157,6 @@ Settings: same as window 1
- function/send_input
- function/spawn_agent
- function/wait_agent
- namespace/web: Tools in the web namespace.; hash=0037b1ed8d50fab5
- function/run
01:message/developer:
Retain these base instructions.
02:message/developer[4]:
@@ -176,9 +168,8 @@ Settings: same as window 1
- `r0` = `<SKILLS_ROOT>`
- `r1` = `<SKILLS_ROOT>/.system`
### Available skills
- openai-docs: API first-timers, Codex/Work Q&A. If the user already has an OpenAI API integration, skip...upplied text or data. (file: r1/openai-docs/SKILL.md) [hash=8ba7f79795ddc1cb]
- skill-creator: Create or update a Codex skill with appropriately scoped instructions and any needed supporting resources. (file: r1/skill-creator/SKILL.md)
- skill-installer: Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo pat...g private repos). (file: r1/skill-installer/SKILL.md) [hash=80e87da510d34d88]
- skill-installer: Install aKode skills into $CODEX_HOME/skills from the default skills repository (the ...g private repos). (file: r1/skill-installer/SKILL.md) [hash=50f61366dff05eec]
- app-store-screenshots: App Store and Google Play screenshot creation with exact platform specs. Covers...ore listing (file: r0/app-store-screenshots/SKILL.md) [hash=3f178aa58b5c4f8e]
- assistant-ui: Overview and router for assistant-ui, the React library for building AI chat interfaces ...d by those siblings. (file: r0/assistant-ui/SKILL.md) [hash=61291772e6f2139c]
- find-skills: Helps users discover and install agent skills when they ask questions like "how do I do X...an installable skill. (file: r0/find-skills/SKILL.md) [hash=48b9e99d9200af8d]