mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-05 14:12:54 +00:00
* feat: add internal code mode namespaces * test: add code mode namespace live proof * test: add live code mode Docker repro * chore: keep code mode docker repro out of package scripts * fix: break code mode namespace type cycle * fix: clean code mode namespace ci drift * fix: route code mode namespaces through tools * fix: preserve explicit agent global sessions * docs: explain code mode namespace registry * test: cap realtime websocket payload * fix: normalize code mode timeout results * fix: satisfy code mode timeout lint * chore: rerun code mode CI * ci: extend node shard silence watchdog * test: avoid child process mock deadlocks * test: fix code mode repro shebang * fix: scope explicit agent sentinel sessions * test: preserve child process mock actual loader * fix: dispatch namespace tools by exact id * test: satisfy restart execFile mock type
37 lines
820 B
Bash
Executable File
37 lines
820 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
source scripts/lib/live-docker-stage.sh
|
|
|
|
for profile_path in "$HOME/.profile" /home/appuser/.profile; do
|
|
if [ -f "$profile_path" ] && [ -r "$profile_path" ]; then
|
|
set +e +u
|
|
# shellcheck disable=SC1090
|
|
source "$profile_path"
|
|
set -euo pipefail
|
|
break
|
|
fi
|
|
done
|
|
|
|
if [ -z "${OPENAI_API_KEY:-}" ]; then
|
|
echo "ERROR: OPENAI_API_KEY is required for the code mode namespace live Docker test." >&2
|
|
exit 1
|
|
fi
|
|
export OPENAI_API_KEY
|
|
if [ -n "${OPENAI_BASE_URL:-}" ]; then
|
|
export OPENAI_BASE_URL
|
|
fi
|
|
|
|
tmp_dir="$(mktemp -d)"
|
|
cleanup() {
|
|
rm -rf "$tmp_dir"
|
|
}
|
|
trap cleanup EXIT
|
|
|
|
openclaw_live_stage_source_tree "$tmp_dir"
|
|
openclaw_live_stage_node_modules "$tmp_dir"
|
|
openclaw_live_link_runtime_tree "$tmp_dir"
|
|
|
|
cd "$tmp_dir"
|
|
tsx scripts/repro/code-mode-namespace-live.ts
|