aKode fase 5: rinomina interna (crate akode-*, akode-rs/, akode-cli/, binario akode, AKODE_*, ~/.akode, snapshot)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -252,7 +252,7 @@ def _make_adapter_launcher(
|
||||
adapter_command = subprocess.list2cmdline([sys.executable, str(adapter_script)])
|
||||
launcher.write_text(
|
||||
"@echo off\n"
|
||||
f'set "CODEX_CONFORMANCE_REQUIRE_AUTOMATIC_AUTH={automatic_auth}"\n'
|
||||
f'set "AKODE_CONFORMANCE_REQUIRE_AUTOMATIC_AUTH={automatic_auth}"\n'
|
||||
f"{adapter_command} %*\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
@@ -260,7 +260,7 @@ def _make_adapter_launcher(
|
||||
launcher = launcher_dir / "client"
|
||||
launcher.write_text(
|
||||
"#!/bin/sh\n"
|
||||
f"export CODEX_CONFORMANCE_REQUIRE_AUTOMATIC_AUTH={automatic_auth}\n"
|
||||
f"export AKODE_CONFORMANCE_REQUIRE_AUTOMATIC_AUTH={automatic_auth}\n"
|
||||
f'exec {shlex.quote(sys.executable)} {shlex.quote(str(adapter_script))} "$@"\n',
|
||||
encoding="utf-8",
|
||||
)
|
||||
@@ -382,15 +382,15 @@ def _run_scenario(
|
||||
scenario_dir = output_dir / _safe_scenario_name(scenario)
|
||||
scenario_dir.mkdir(parents=True, exist_ok=True)
|
||||
adapter_report = scenario_dir / "codex-adapter.json"
|
||||
adapter_home = scenario_dir / "codex-home"
|
||||
adapter_home = scenario_dir / "akode-home"
|
||||
adapter_home.mkdir()
|
||||
|
||||
env = dict(base_env)
|
||||
env.update(
|
||||
{
|
||||
"CODEX_CONFORMANCE_BINARY": str(codex_binary),
|
||||
"CODEX_CONFORMANCE_HOME": str(adapter_home),
|
||||
"CODEX_CONFORMANCE_ADAPTER_REPORT": str(adapter_report),
|
||||
"AKODE_CONFORMANCE_BINARY": str(codex_binary),
|
||||
"AKODE_CONFORMANCE_HOME": str(adapter_home),
|
||||
"AKODE_CONFORMANCE_ADAPTER_REPORT": str(adapter_report),
|
||||
}
|
||||
)
|
||||
command = [
|
||||
@@ -493,7 +493,7 @@ def run_official_mode(
|
||||
) -> list[OfficialScenarioResult]:
|
||||
launcher = _make_adapter_launcher(
|
||||
adapter_script,
|
||||
require_automatic_auth=base_env.get("CODEX_CONFORMANCE_REQUIRE_AUTOMATIC_AUTH")
|
||||
require_automatic_auth=base_env.get("AKODE_CONFORMANCE_REQUIRE_AUTOMATIC_AUTH")
|
||||
== "1",
|
||||
)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user