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>
37 lines
1.3 KiB
Bash
Executable File
37 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
cd "${repo_root}"
|
|
|
|
# Bazel wildcard builds skip manual targets, which misses the internal
|
|
# `*-unit-tests-bin` rust_test targets generated by `codex_rust_crate()`.
|
|
# Add only those manual rust_test targets explicitly so inline `#[cfg(test)]`
|
|
# call sites are linted without pulling in unrelated manual release targets.
|
|
manual_rust_test_targets="$(
|
|
./.github/scripts/run-bazel-query-ci.sh \
|
|
--output=label \
|
|
-- 'kind("rust_test rule", attr(tags, "manual", //akode-rs/...))'
|
|
)"
|
|
if [[ "${RUNNER_OS:-}" != "Windows" ]]; then
|
|
manual_rust_test_targets="$(printf '%s\n' "${manual_rust_test_targets}" | grep -v -- '-windows-cross-bin$' || true)"
|
|
fi
|
|
|
|
# Convert semantic lint opt-outs into negative target patterns so wildcard
|
|
# builds do not analyze toolchains used only by those wrappers.
|
|
excluded_targets="$(
|
|
./.github/scripts/run-bazel-query-ci.sh \
|
|
--output=label \
|
|
-- 'attr(tags, "no-argument-comment-lint", //akode-rs/...)'
|
|
)"
|
|
|
|
# The lint configuration does not register the transitioned Windows toolchain.
|
|
printf '%s\n' \
|
|
"//akode-rs/..." \
|
|
"-//akode-rs/core/tests/remote_env_windows:smoke-test"
|
|
if [[ -n "${excluded_targets}" ]]; then
|
|
printf '%s\n' "${excluded_targets}" | sed 's/^/-/'
|
|
fi
|
|
printf '%s\n' "${manual_rust_test_targets}"
|