Remove run source tree from browser repo

This commit is contained in:
npc0-hue
2026-07-14 17:23:06 +08:00
parent 4f33f761a3
commit a57a5dbfcf
61 changed files with 118 additions and 5402 deletions
-1
View File
@@ -13,7 +13,6 @@ ensure_node_deps() {
"$ROOT_DIR/scripts/check-structure.sh"
(cd "$ROOT_DIR/platform" && go test ./...)
(cd "$ROOT_DIR/run" && go test ./...)
ensure_node_deps "$ROOT_DIR/platform_web"
(cd "$ROOT_DIR/platform_web" && npm run typecheck && npm run test && npm run build)
-25
View File
@@ -5,10 +5,6 @@ required_paths=(
"AGENTS.md"
"README.md"
"scripts/check-all.sh"
"run/AGENTS.md"
"run/README.md"
"run/go.mod"
"run/cmd/run/main.go"
"platform/AGENTS.md"
"platform/README.md"
"platform/go.mod"
@@ -45,27 +41,6 @@ required_paths=(
"platform/protocol/run-contracts.md"
"platform/protocol/ai-provider-contracts.md"
"platform/protocol/server-lifecycle.md"
"run/api"
"run/protocol"
"run/domain"
"run/runtime"
"run/spool"
"run/artifact"
"run/logingest"
"run/config"
"run/shared"
"run/api/platform_client.go"
"run/api/platform_client_test.go"
"run/config/config.go"
"run/config/config_test.go"
"run/domain/status.go"
"run/runtime/smoke.go"
"run/runtime/smoke_test.go"
"run/protocol/control.md"
"run/protocol/job.md"
"run/protocol/log-ingest.md"
"run/protocol/artifact.md"
"run/protocol/game-client-bridge.md"
"platform_web/api"
"platform_web/routes"
"platform_web/pages"
+9
View File
@@ -21,6 +21,7 @@ export PLATFORM_METADATA_PATH="${PLATFORM_METADATA_PATH:-$PLATFORM_DATA_DIR/meta
export PLATFORM_LOG_BODY_BACKEND="${PLATFORM_LOG_BODY_BACKEND:-file}"
export PLATFORM_LOG_DIR="${PLATFORM_LOG_DIR:-$PLATFORM_DATA_DIR/logs}"
export RUN_REPO_DIR="${RUN_REPO_DIR:-$LOCAL_DEBUG_ROOT_DIR/../run}"
export RUN_MODE="${RUN_MODE:-worker}"
export RUN_PLATFORM_URL="${RUN_PLATFORM_URL:-http://127.0.0.1:$LOCAL_DEBUG_PLATFORM_PORT}"
export RUN_ENDPOINT_ID="${RUN_ENDPOINT_ID:-run-local-debug}"
@@ -46,6 +47,14 @@ local_debug_web_url() {
printf 'http://127.0.0.1:%s' "$LOCAL_DEBUG_WEB_PORT"
}
ensure_local_run_repo() {
if [[ ! -f "$RUN_REPO_DIR/go.mod" ]]; then
printf 'run repo not found at %s\n' "$RUN_REPO_DIR" >&2
printf 'clone git@git.npc0.com:admin343/run.git next to this repo or set RUN_REPO_DIR to the run checkout\n' >&2
return 1
fi
}
local_debug_forbidden_pattern() {
printf '%s' '(/Users/|/private/|unix://|tcp://|Bearer |sk-|password=|apiKeyRef|rawApiKey|sessionToken|run session token|direct run URL|plugin-owned transport)'
}
+2 -1
View File
@@ -59,8 +59,9 @@ start_self_hosted_stack() {
wait_for_url platform "$PLATFORM_URL/healthz" 45
printf 'self-starting run worker for local debug smoke\n'
ensure_local_run_repo
(
cd "$ROOT_DIR/run"
cd "$RUN_REPO_DIR"
exec env \
GOCACHE="$GOCACHE" \
RUN_MODE="$RUN_MODE" \
+3 -1
View File
@@ -85,6 +85,7 @@ wait_for_url() {
printf 'local debug root: %s\n' "$LOCAL_DEBUG_ROOT"
printf 'platform: %s\n' "$(local_debug_platform_url)"
printf 'platform_web: %s\n' "$(local_debug_web_url)"
printf 'run repo: %s\n' "$RUN_REPO_DIR"
printf 'platform log: %s\n' "$LOCAL_DEBUG_LOG_DIR/platform.log"
printf 'run log: %s\n' "$LOCAL_DEBUG_LOG_DIR/run.log"
printf 'platform_web log: %s\n' "$LOCAL_DEBUG_LOG_DIR/platform_web.log"
@@ -104,7 +105,8 @@ start_service platform "$ROOT_DIR/platform" env \
wait_for_url platform "$(local_debug_platform_url)/healthz"
start_service run "$ROOT_DIR/run" env \
ensure_local_run_repo
start_service run "$RUN_REPO_DIR" env \
GOCACHE="$GOCACHE" \
RUN_MODE="$RUN_MODE" \
RUN_PLATFORM_URL="$RUN_PLATFORM_URL" \