Skip to content

Commit 2575f60

Browse files
committed
Merge origin/main into codex/fix-authority-timeout-test-contract
Signed-off-by: duanjialing.777 <duanjialing.777@bytedance.com>
2 parents 88553e8 + 16e6fac commit 2575f60

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

‎examples/install-local-smoke.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,16 @@ def main() -> int:
291291
release_python = release_root / ".loopx-python"
292292
assert release_python.read_text(encoding="utf-8").strip() == sys.executable
293293
assert (release_root / "loopx" / "cli.py").is_file(), release_root
294+
repair = codex_home / "skills" / "loopx-self-repair" / "scripts" / "find_pattern.py"
295+
assert repair.with_name("lexical_retrieval.py").read_bytes() == (
296+
release_root / "loopx" / "lexical_retrieval.py"
297+
).read_bytes()
298+
repair_query = subprocess.run(
299+
[sys.executable, "-I", str(repair), "--query", "closeout recovery"],
300+
cwd=root, env={"PATH": str(root / "empty-path")},
301+
check=True, capture_output=True, text=True,
302+
)
303+
assert json.loads(repair_query.stdout)["total_matches"] > 0
294304
runtime_package = release_root / "loopx" / "control_plane" / "runtime"
295305
assert (runtime_package / "run_compaction.py").is_file(), release_root
296306
assert (runtime_package / "session_runtime.py").is_file(), release_root

‎scripts/install-local.sh‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,16 @@ PY
390390
fi
391391
skill_target="$skills_dir/$skill_name"
392392
skill_tmp="$(mktemp -d "$skills_dir/.${skill_name}.tmp.XXXXXX")"
393-
if ! cp -R "$skill_source"/. "$skill_tmp"/; then
393+
if ! PYTHONSAFEPATH=1 PYTHONPATH="$source_root${PYTHONPATH:+:$PYTHONPATH}" \
394+
"${LOOPX_PYTHON:-python3}" - "$skill_source" "$skill_tmp" <<'PY'
395+
import sys
396+
from pathlib import Path
397+
398+
from loopx.workflow_skill_install import _install_one_skill
399+
400+
_install_one_skill(Path(sys.argv[1]), Path(sys.argv[2]))
401+
PY
402+
then
394403
rm -rf "$skill_tmp"
395404
return 1
396405
fi

0 commit comments

Comments
 (0)