#!/usr/bin/env bash set -euo pipefail ROOT="/data/aios-gitops" WORKSPACE="$ROOT/workspace" ARTIFACT="$ROOT/artifacts/AIOS_V1R1C0_ONLINE_BASELINE_ACCEPTANCE.md" REPORT_IN_REPO="$WORKSPACE/docs/release/AIOS_V1R1C0_ONLINE_BASELINE_ACCEPTANCE.md" EVIDENCE="$ROOT/artifacts/AIOS_V1R1C0_FINAL_EVIDENCE.txt" VERSION="V1R1C0" TAG="V1R1C0-baseline-20260706" SOURCE="AIOS_V1R1C0_MULTIUSER_GITOPS_CUSTOM_LLM_PROD_FULL_DEPLOY_20260706.zip" GIT_URL="https://cnnetmkt.top/git/aios/aios-v23.git" mkdir -p "$ROOT/artifacts" "$ROOT/logs" "$WORKSPACE/docs/release" python3 - <<'PY' import json import sqlite3 from datetime import datetime, timezone from pathlib import Path root = Path("/data/aios-gitops") workspace = root / "workspace" db = root / "runtime" / "gitops_model.sqlite3" version = "V1R1C0" tag = "V1R1C0-baseline-20260706" source = "AIOS_V1R1C0_MULTIUSER_GITOPS_CUSTOM_LLM_PROD_FULL_DEPLOY_20260706.zip" entry = "https://cnnetmkt.top" git_url = "https://cnnetmkt.top/git/aios/aios-v23.git" short_links = ["/git", "/base", "/ver", "/diff", "/patch", "/model", "/run", "/api", "/hook"] current_path = workspace / "baseline" / "current.json" current = {} if current_path.exists(): current = json.loads(current_path.read_text(encoding="utf-8")) current.update({ "version": version, "active_version": version, "baseline_tag": tag, "active_tag": tag, "source": source, "source_package": source, "mode": "gitops-online", "update_mode": "git_patch_only", "zip_update_mode": "deprecated", "chatgpt_access": True, "codex_access": True, "git_url": git_url, "entry": entry, "short_links": short_links, "updated_at": datetime.now(timezone.utc).isoformat(), }) current_path.write_text(json.dumps(current, ensure_ascii=False, indent=2) + "\n", encoding="utf-8") version_path = workspace / "versions" / "V1R1C0.json" version_doc = {} if version_path.exists(): version_doc = json.loads(version_path.read_text(encoding="utf-8")) version_doc.update({ "version": version, "tag": tag, "baseline_tag": tag, "source": source, "update_mode": "git_patch_only", "zip_update_mode": "deprecated", "git_url": git_url, "updated_at": datetime.now(timezone.utc).isoformat(), }) version_path.write_text(json.dumps(version_doc, ensure_ascii=False, indent=2) + "\n", encoding="utf-8") if db.exists(): con = sqlite3.connect(db) try: con.execute( "UPDATE gitops_baseline SET active_version=?, active_tag=?, source_package=?, entry=?, update_mode=?, status=?, updated_at=? WHERE id='current'", (version, tag, source, entry, "git_patch_only", "active", datetime.now(timezone.utc).isoformat()), ) con.execute( "UPDATE gitops_versions SET tag=?, status=? WHERE version=?", (tag, "ready", version), ) con.commit() finally: con.close() PY cd "$WORKSPACE" { echo "== services ==" systemctl is-active aios-gitops-model-api aios-gitea aios-hermes-router aios-hermes-executor openclaw-gateway nginx || true echo echo "== gitea ==" curl -fsS http://127.0.0.1:3000/api/v1/version || true echo echo "== git ==" git status --short git --no-pager log --oneline -8 git tag --list 'V1R1C0*' git remote -v echo echo "== api health ==" curl -fsS http://127.0.0.1:18890/health echo curl -fsS http://127.0.0.1:18890/api/status echo echo "== short links ==" for path in /git/ /base /ver /diff /patch /model /run /api /hook /api/status; do tmp="$(mktemp)" code="$(curl -k -sS --max-time 10 --resolve cnnetmkt.top:443:127.0.0.1 -o "$tmp" -w "%{http_code}" "https://cnnetmkt.top${path}" || true)" title="$(grep -ao '