chore(public): sanitize repository presentation

This commit is contained in:
igor04091968
2026-06-03 08:02:15 +03:00
parent dd3163624b
commit 9fc218dc49
107 changed files with 829 additions and 139257 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ set -uo pipefail
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
SMOKE_ENV_FILE="${AW_SMOKE_ENV_FILE:-}"
for env_candidate in "$REPO_ROOT/secrets/runtime.env" "$HOME/.config/aw-contour-smoke.env" "$SMOKE_ENV_FILE"; do
for env_candidate in "$REPO_ROOT/private-config/runtime.env" "$HOME/.config/aw-contour-smoke.env" "$SMOKE_ENV_FILE"; do
if [ -n "$env_candidate" ] && [ -f "$env_candidate" ]; then
# Load local credentials and site-specific overrides without committing them.
# Later files override earlier defaults.
+7 -6
View File
@@ -8,13 +8,14 @@ import { promisify } from "node:util";
const require = createRequire(import.meta.url);
const execFileAsync = promisify(execFile);
const homeDir = process.env.HOME || "";
function loadPlaywright() {
const candidates = [
"playwright",
"playwright-core",
process.env.PLAYWRIGHT_CORE_MODULE,
"/home/igor/.agents/skills/playwright/node_modules/playwright-core",
homeDir ? path.join(homeDir, ".agents/skills/playwright/node_modules/playwright-core") : "",
].filter(Boolean);
const errors = [];
for (const candidate of candidates) {
@@ -104,9 +105,9 @@ function commandInPath(name) {
function findChromiumExecutable(explicitPath) {
return firstExisting([
explicitPath,
"/home/igor/.cache/ms-playwright/chromium-1217/chrome-linux64/chrome",
"/home/igor/.cache/ms-playwright/chromium-1208/chrome-linux64/chrome",
"/home/igor/.cache/rod/browser/chromium-1321438/chrome",
homeDir ? path.join(homeDir, ".cache/ms-playwright/chromium-1217/chrome-linux64/chrome") : "",
homeDir ? path.join(homeDir, ".cache/ms-playwright/chromium-1208/chrome-linux64/chrome") : "",
homeDir ? path.join(homeDir, ".cache/rod/browser/chromium-1321438/chrome") : "",
commandInPath("chromium"),
commandInPath("chromium-browser"),
commandInPath("google-chrome"),
@@ -365,8 +366,8 @@ async function runPageCheckWithRetries(runOnce, spec, maxRetries) {
async function main() {
const requestedEngine = env("AW_BROWSER_SMOKE_ENGINE", "auto");
const playwright = requestedEngine === "chromium-cli" ? null : loadPlaywright();
const awBase = normalizeBase(env("AW_BROWSER_SMOKE_AW_BASE", env("AW_SMOKE_AW_SERVER", "http://10.10.10.13:5600")));
const worktimeBase = normalizeBase(env("AW_BROWSER_SMOKE_WORKTIME_BASE", env("AW_SMOKE_WORKTIME_API", "http://10.10.10.13:5610")));
const awBase = normalizeBase(env("AW_BROWSER_SMOKE_AW_BASE", env("AW_SMOKE_AW_SERVER", "http://127.0.0.1:5600")));
const worktimeBase = normalizeBase(env("AW_BROWSER_SMOKE_WORKTIME_BASE", env("AW_SMOKE_WORKTIME_API", "http://127.0.0.1:5610")));
const host = env("AW_BROWSER_SMOKE_HOST", env("AW_SMOKE_SOURCE_HOSTNAME", "SHARKON2025"));
const timeoutMs = Number(env("AW_BROWSER_SMOKE_TIMEOUT_MS", "20000"));
const settleMs = Number(env("AW_BROWSER_SMOKE_SETTLE_MS", "6000"));
+2 -2
View File
@@ -16,8 +16,8 @@ for rust_bin in "${rust_candidates[@]}"; do
fi
done
if [[ -z "${NODE_PATH:-}" && -d /home/igor/.agents/skills/playwright/node_modules ]]; then
export NODE_PATH=/home/igor/.agents/skills/playwright/node_modules
if [[ -z "${NODE_PATH:-}" && -d "$HOME/.agents/skills/playwright/node_modules" ]]; then
export NODE_PATH="$HOME/.agents/skills/playwright/node_modules"
fi
exec node "$ROOT_DIR/scripts/aw-webui-browser-smoke.mjs" "$@"
+3 -3
View File
@@ -5,12 +5,12 @@ ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
OUT_DIR="${METAGPT_AW_OUT_DIR:-$ROOT/.ai/metagpt}"
METAGPT_BIN="${METAGPT_BIN:-/home/igor/bin/metagpt-lab}"
METAGPT_BIN="${METAGPT_BIN:-~/bin/metagpt-lab}"
METAGPT_AW_INVESTMENT="${METAGPT_AW_INVESTMENT:-0.1}"
METAGPT_AW_N_ROUND="${METAGPT_AW_N_ROUND:-2}"
METAGPT_AW_TIMEOUT="${METAGPT_AW_TIMEOUT:-90}"
METAGPT_AW_ENGINE="${METAGPT_AW_ENGINE:-direct}"
METAGPT_CONFIG="${METAGPT_CONFIG:-/home/igor/.metagpt/config2.yaml}"
METAGPT_CONFIG="${METAGPT_CONFIG:-~/.metagpt/config2.yaml}"
usage() {
cat <<'USAGE'
@@ -124,7 +124,7 @@ set +e
if [[ "$METAGPT_AW_ENGINE" == "team" ]]; then
timeout "$METAGPT_AW_TIMEOUT" "$METAGPT_BIN" --investment "$METAGPT_AW_INVESTMENT" --n-round "$METAGPT_AW_N_ROUND" --no-implement --project-name "aw-scout-$STAMP" "$PROMPT" 2>&1 | tee -a "$OUT"
else
/home/igor/labs/metagpt-lab/.venv/bin/python - "$METAGPT_CONFIG" "$PROMPT" <<'PY' 2>&1 | tee -a "$OUT"
~/labs/metagpt-lab/.venv/bin/python - "$METAGPT_CONFIG" "$PROMPT" <<'PY' 2>&1 | tee -a "$OUT"
import sys
from pathlib import Path
+2 -2
View File
@@ -4,10 +4,10 @@ set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
if [[ -f "${ROOT_DIR}/secrets/runtime.env" ]]; then
if [[ -f "${ROOT_DIR}/private-config/runtime.env" ]]; then
set -a
# shellcheck disable=SC1091
source "${ROOT_DIR}/secrets/runtime.env"
source "${ROOT_DIR}/private-config/runtime.env"
set +a
fi
+6 -6
View File
@@ -4,10 +4,10 @@ set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
if [[ -f "${ROOT_DIR}/secrets/runtime.env" ]]; then
if [[ -f "${ROOT_DIR}/private-config/runtime.env" ]]; then
set -a
# shellcheck disable=SC1091
source "${ROOT_DIR}/secrets/runtime.env"
source "${ROOT_DIR}/private-config/runtime.env"
set +a
fi
@@ -73,11 +73,11 @@ log "Branch: $(git branch --show-current)"
log "Running local quality gate..."
./scripts/quality-gate.sh | tee -a "${LOG_DIR}/quality-gate.log"
if [[ -f "${ROOT_DIR}/secrets/runtime.env" ]]; then
log "Loading secrets/runtime.env"
if [[ -f "${ROOT_DIR}/private-config/runtime.env" ]]; then
log "Loading private-config/runtime.env"
set -a
# shellcheck disable=SC1091
source "${ROOT_DIR}/secrets/runtime.env"
source "${ROOT_DIR}/private-config/runtime.env"
set +a
fi
@@ -94,7 +94,7 @@ fi
if [[ -z "${AW_SSH_PASSWORD:-}" || -z "${AW_WINRM_PASSWORD:-}" ]]; then
log "ERROR: missing AW_SSH_PASSWORD or AW_WINRM_PASSWORD."
log "Provide them via interactive prompt (TTY) or create secrets/runtime.env."
log "Provide them via interactive prompt (TTY) or create private-config/runtime.env."
exit 3
fi