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:
andrea.difonzo
2026-11-17 12:37:52 +01:00
parent e37a0deba9
commit 7c1c6dfa8d
10306 changed files with 748026 additions and 748088 deletions

View File

@@ -1,6 +1,6 @@
set working-directory := "codex-rs"
set working-directory := "akode-rs"
set positional-arguments
export CODEX_REPO_ROOT := justfile_directory()
export AKODE_REPO_ROOT := justfile_directory()
export JUST_SHELL := justfile_directory() / "scripts/just-shell.py"
set shell := ["python3", "-c", 'import os, runpy; runpy.run_path(os.environ["JUST_SHELL"], run_name="__main__")']
set windows-shell := ["python", "-c", 'import os, runpy; runpy.run_path(os.environ["JUST_SHELL"], run_name="__main__")']
@@ -12,16 +12,16 @@ python := if os_family() == "windows" { "python" } else { "python3" }
help:
just -l
# `codex`
alias c := codex
codex *args:
cargo run --bin codex -- {args}
# `akode`
alias c := akode
akode *args:
cargo run --bin akode -- {args}
# `codex exec`
# `akode exec`
exec *args:
cargo run --bin codex -- exec {args}
cargo run --bin akode -- exec {args}
# Start `codex exec-server` and run codex-tui.
# Start `akode exec-server` and run akode-tui.
[no-cd]
[positional-arguments]
[unix]
@@ -30,21 +30,16 @@ tui-with-exec-server *args:
# Run the CLI version of the file-search crate.
file-search *args:
cargo run --bin codex-file-search -- {args}
cargo run --bin akode-file-search -- {args}
# Run the standalone code-mode host from source.
code-mode-host *args:
cargo run --bin codex-code-mode-host -- {args}
# Assemble a local Codex package.
[no-cd]
assemble-codex-package *args:
{{ python }} {{ justfile_directory() }}/scripts/build_codex_package.py {args}
cargo run --bin akode-code-mode-host -- {args}
# Build the CLI and run the app-server test client
app-server-test-client *args:
cargo build -p codex-cli
cargo run -p codex-app-server-test-client -- --codex-bin ./target/debug/codex {args}
cargo build -p akode-cli
cargo run -p akode-app-server-test-client -- --codex-bin ./target/debug/akode {args}
# Format the justfile, Rust, Bazel/Starlark, Python SDK code, and Python scripts.
fmt:
@@ -108,7 +103,7 @@ bench-smoke:
# Run Bazel-backed end-to-end macrobenchmarks with optimized binaries.
bench-e2e:
# Keep measured binaries comparable to production-style optimized builds.
bazel test --compilation_mode=opt --cache_test_results=no --test_output=streamed //codex-rs:e2e-benchmarks
bazel test --compilation_mode=opt --cache_test_results=no --test_output=streamed //akode-rs:e2e-benchmarks
# Run Bazel-backed end-to-end macrobenchmarks once per case with release-like
# Rust cfg paths but fastbuild codegen.
@@ -116,29 +111,29 @@ bench-e2e-smoke:
# Avoid optimizer cost because smoke runs only check that benchmarks work.
# Compile target Rust code through the same release-only cfg paths as opt.
# Compile exec-platform Rust tools through those release-only cfg paths too.
bazel test --compilation_mode=fastbuild --@rules_rust//rust/settings:extra_rustc_flag=-Cdebug-assertions=no --@rules_rust//rust/settings:extra_exec_rustc_flag=-Cdebug-assertions=no --cache_test_results=no --test_output=streamed --test_arg=--test //codex-rs:e2e-benchmarks
bazel test --compilation_mode=fastbuild --@rules_rust//rust/settings:extra_rustc_flag=-Cdebug-assertions=no --@rules_rust//rust/settings:extra_exec_rustc_flag=-Cdebug-assertions=no --cache_test_results=no --test_output=streamed --test_arg=--test //akode-rs:e2e-benchmarks
# Build and run Codex from source using Bazel.
# On Unix, use `[no-cd]` and `--run_under="cd $PWD &&"` to ensure Bazel runs
# the command in the current working directory.
[no-cd]
[unix]
bazel-codex *args:
bazel run //codex-rs/cli:codex --run_under="cd $PWD &&" -- "$@"
bazel-akode *args:
bazel run //akode-rs/cli:akode --run_under="cd $PWD &&" -- "$@"
[windows]
bazel-codex *args:
bazel run //codex-rs/cli:codex --run_under='cd /d "{{ invocation_directory_native() }}" &&' -- @($args | Select-Object -Skip 1)
bazel-akode *args:
bazel run //akode-rs/cli:akode --run_under='cd /d "{{ invocation_directory_native() }}" &&' -- @($args | Select-Object -Skip 1)
# Build and run the standalone code-mode host from source using Bazel.
[no-cd]
[unix]
bazel-code-mode-host *args:
bazel run //codex-rs/code-mode-host:codex-code-mode-host --run_under="cd $PWD &&" -- "$@"
bazel run //akode-rs/code-mode-host:akode-code-mode-host --run_under="cd $PWD &&" -- "$@"
[windows]
bazel-code-mode-host *args:
bazel run //codex-rs/code-mode-host:codex-code-mode-host --run_under='cd /d "{{ invocation_directory_native() }}" &&' -- @($args | Select-Object -Skip 1)
bazel run //akode-rs/code-mode-host:akode-code-mode-host --run_under='cd /d "{{ invocation_directory_native() }}" &&' -- @($args | Select-Object -Skip 1)
[no-cd]
bazel-lock-update:
@@ -167,11 +162,11 @@ bazel-argument-comment-lint:
bazel build --config=argument-comment-lint -- $({{ justfile_directory() }}/tools/argument-comment-lint/list-bazel-targets.sh)
build-for-release:
bazel build //codex-rs/cli:release_binaries
bazel build //akode-rs/cli:release_binaries
# Regenerate the json schema for config.toml from the current config types.
write-config-schema:
cargo run -p codex-config-schema --bin codex-write-config-schema
cargo run -p akode-config-schema --bin akode-write-config-schema
# Regenerate app-server protocol schemas and the Python SDK derived from them.
write-app-server-schema *args:
@@ -179,9 +174,9 @@ write-app-server-schema *args:
[no-cd]
write-hooks-schema:
cargo run --manifest-path {{ justfile_directory() }}/codex-rs/Cargo.toml -p codex-hooks --bin write_hooks_schema_fixtures
cargo run --manifest-path {{ justfile_directory() }}/akode-rs/Cargo.toml -p akode-hooks --bin write_hooks_schema_fixtures
# Run the argument-comment Dylint checks across codex-rs.
# Run the argument-comment Dylint checks across akode-rs.
[no-cd]
[unix]
argument-comment-lint *args:
@@ -198,8 +193,8 @@ argument-comment-lint-from-source *args:
# Tail logs from the state SQLite database
[unix]
log *args:
if [ "${1:-}" = "--" ]; then shift; fi; cargo run -p codex-cli --bin logs_client -- "$@"
if [ "${1:-}" = "--" ]; then shift; fi; cargo run -p akode-cli --bin logs_client -- "$@"
[windows]
log *args:
$forwarded_args = @($args | Select-Object -Skip 1); if ($forwarded_args.Count -gt 0 -and $forwarded_args[0] -eq "--") { $forwarded_args = @($forwarded_args | Select-Object -Skip 1) }; cargo run -p codex-cli --bin logs_client -- @forwarded_args
$forwarded_args = @($args | Select-Object -Skip 1); if ($forwarded_args.Count -gt 0 -and $forwarded_args[0] -eq "--") { $forwarded_args = @($forwarded_args | Select-Object -Skip 1) }; cargo run -p akode-cli --bin logs_client -- @forwarded_args