Redesign portal in English terminal style and export English pipeline status

This commit is contained in:
Pavel Isaev 2026-11-07 15:40:17 +03:00
parent 4c33c87c0b
commit 20061de1bc
14 changed files with 395 additions and 80 deletions

View file

@ -2,6 +2,16 @@
Updated 2026-11-07. Architectural acceptance is separate from implementation.
## English hacker-style portal
The portal now uses a dark monospace layout, cyan/turquoise accents with Arch blue,
an illustrative composition map, three release cards and English copy throughout.
Pipeline stages, including KDE and publication/cleanup recovery, have English
labels. API endpoint names, schemas, state tokens and artifact identities are
preserved. `pipeline-status.py` exports an English public projection so the active
older coordinator can continue without a restart or historical evidence rewrite.
Deployment instructions: `deploy/RELEASE-CYCLE.md`.
## KDE publication — D-091
The user confirmed KDE Desktop hardware readiness and authorized publication on

View file

@ -14,7 +14,7 @@
}
handle /archipelago/pipeline.json {
root * /srv/artifacts
rewrite * /pipeline.json
rewrite * /pipeline-public.json
header Cache-Control "no-cache"
file_server
}

View file

@ -1,5 +1,27 @@
# Daily release cycle
## English public status and portal (2026-11-07)
The portal uses an English-only dark terminal design. Public URLs and JSON field
names/state tokens remain unchanged. `/archipelago/pipeline.json` now serves
`data/public/pipeline-public.json`, an English projection of private `latest.json`.
`pipeline/pipeline-status.py` translates presentation fields, preserving identities,
timestamps, releases and original private run evidence. New drivers also emit
English private/text status. A running older driver can finish unchanged: a systemd
path unit exports its status transitions without rewriting its evidence or restarting it.
Deploy `archipelago-pipeline-status.{path,service}` to `/etc/systemd/system/`, run
`systemctl daemon-reload`, enable/start the path unit and run the service once to
seed the public file **before** loading the updated Caddyfile. The path watcher is
not a release schedule; the release-cycle timer remains disabled under D-090.
The new driver's normal writer also invokes the exporter, so standalone driver
use does not rely solely on the watcher. Keep `pipeline.json` on disk for legacy
internal consumers; the HTTPS endpoint is the normalized projection.
The page reads the existing `releases.json` catalog and polls `pipeline.json` every
30 seconds while visible, with one request at a time. Download links remain
same-origin `/archipelago/iso/` URLs and checksums come directly from the catalog.
## D-088 restart
The user cancelled run `20261106T152122Z` during Core build to include the new

View file

@ -0,0 +1,11 @@
[Unit]
Description=Watch Archipelago release status for public export
[Path]
PathChanged=/opt/archipelago/data/private/release-cycle/latest.json
Unit=archipelago-pipeline-status.service
TriggerLimitIntervalSec=60
TriggerLimitBurst=200
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,8 @@
[Unit]
Description=Export English Archipelago public pipeline status
StartLimitIntervalSec=0
[Service]
Type=oneshot
ExecStart=/usr/bin/python3 /opt/archipelago/src/infrastructure/pipeline/pipeline-status.py
UMask=0022

View file

@ -16,7 +16,7 @@ latest = parent / 'latest.json'
if latest.exists():
state = json.loads(latest.read_text())
if state.get('invocation_id') == os.environ.get('INVOCATION_ID') and state['state'] not in ('complete', 'failed'):
state.update(failed_phase=state['state'], state='failed', stage_title='Ошибка',
state.update(failed_phase=state['state'], state='failed', stage_title='Release cycle failed',
error='Coordinator terminated: ' + os.environ.get('SERVICE_RESULT', 'unknown'),
updated=datetime.now(timezone.utc).isoformat())
cycle.write_status(base, state)

View file

@ -0,0 +1,70 @@
#!/usr/bin/env python3
"""Export English public pipeline status without changing run evidence or API keys."""
import argparse
import fcntl
import json
from pathlib import Path
import re
TITLES = {
'starting': 'Starting release cycle',
'preflight': 'Checking build environment',
'freezing-and-compiling-source': 'Freezing sources and building CLI',
'updating-flatpak-cache': 'Refreshing GNOME Flatpak cache',
'updating-kde-flatpak-cache': 'Refreshing KDE Flatpak cache',
'building-software-adapter': 'Building GNOME Software adapter',
'building-discover-adapter': 'Building Discover adapter',
'building-core': 'Building Core',
'building-core-then-purpose': 'Building Core and Purpose',
'building-gnome-purpose-and-iso': 'Building GNOME Purpose and ISO',
'building-kde-purpose-and-iso': 'Building KDE Purpose and ISO',
'core-installed-acceptance': 'Core installed-VM acceptance',
'gnome-installed-acceptance': 'GNOME installed-VM acceptance',
'kde-installed-acceptance': 'KDE installed-VM acceptance',
'archiving-artifacts': 'Archiving artifacts on terra',
'preparing-publication': 'Validating release evidence',
'signing-and-publishing': 'Signing and publishing',
'verifying-public-endpoints': 'Verifying public downloads',
'cleaning-worker': 'Cleaning build workspace',
'complete': 'Release cycle complete',
'failed': 'Release cycle failed',
}
def english_status(state):
state = dict(state)
name = state['state']
state['stage_title'] = TITLES.get(name, name.replace('-', ' ').capitalize())
if name == 'failed' and state.get('published'):
state['stage_title'] = ('Images published; workspace cleanup failed'
if state.get('failed_phase') == 'cleaning-worker'
else 'Images published; post-publication step failed')
elif name == 'complete' and state.get('recovery'):
state['stage_title'] = 'Images published; cleanup recovered; cycle complete'
# Translate the old driver's structured error without altering raw evidence.
if state.get('error'):
state['error'] = re.sub(r'^Команда этапа завершилась с кодом (\d+)$',
r'Stage command exited with code \1', state['error'])
return state
def export(base):
public = base / 'data/public'
public.mkdir(parents=True, exist_ok=True)
with (public / '.pipeline-status.lock').open('a') as lock:
fcntl.flock(lock, fcntl.LOCK_EX)
latest = base / 'data/private/release-cycle/latest.json'
if not latest.exists():
return
state = english_status(json.loads(latest.read_text()))
target = public / 'pipeline-public.json'
temp = target.with_suffix('.tmp')
temp.write_text(json.dumps(state, indent=2) + '\n')
temp.chmod(0o644)
temp.replace(target)
if __name__ == '__main__':
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--base', type=Path, default=Path('/opt/archipelago'))
export(parser.parse_args().base)

View file

@ -50,7 +50,7 @@ def main():
evidence='cleanup-recovery.json', original_state='state-before-recovery.json')
for key in ('error', 'error_details', 'failed_phase'):
state.pop(key, None)
state.update(state='complete', stage_title='Готово; очистка восстановлена', updated=now, finished=now)
state.update(state='complete', stage_title='Complete; cleanup recovered', updated=now, finished=now)
cycle.write_status(args.base, state)
print(json.dumps(state, ensure_ascii=False, indent=2))

View file

@ -23,6 +23,10 @@ cleanup_spec = importlib.util.spec_from_file_location('cleanup_cycle', Path(__fi
cleanup_module = importlib.util.module_from_spec(cleanup_spec)
cleanup_spec.loader.exec_module(cleanup_module)
status_spec = importlib.util.spec_from_file_location('pipeline_status', Path(__file__).with_name('pipeline-status.py'))
status_module = importlib.util.module_from_spec(status_spec)
status_spec.loader.exec_module(status_module)
def atomic(path, value):
path.parent.mkdir(parents=True, exist_ok=True)
@ -32,22 +36,21 @@ def atomic(path, value):
def write_status(base, state):
state.update(status_module.english_status(state))
parent = base / 'data/private/release-cycle'
run = parent / state['run']
if state['state'] == 'failed' and state.get('published'):
state['stage_title'] = ('Образы опубликованы; ошибка очистки' if state.get('failed_phase') == 'cleaning-worker'
else 'Образы опубликованы; ошибка после публикации')
atomic(run / 'state.json', state)
atomic(parent / 'latest.json', state)
atomic(base / 'data/public/pipeline.json', state)
text = f"Прогон: {state['run']}\nСтенд: {state['worker']}\nЭтап: {state['stage_title']}\nОбновлено: {state['updated']}\nОпубликовано: {'да' if state['published'] else 'нет'}\n"
status_module.export(base)
text = f"Run: {state['run']}\nWorker: {state['worker']}\nStage: {state['stage_title']}\nUpdated: {state['updated']}\nPublished: {'yes' if state['published'] else 'no'}\n"
if state.get('flatpak'):
text += 'Flatpak: ' + state['flatpak']['state'] + '\n'
if state.get('error'):
text += 'Причина: ' + state['error'] + '\n'
text += 'Error: ' + state['error'] + '\n'
if state.get('recovery'):
text += 'Восстановление: очистка завершена; исходная ошибка сохранена в state-before-recovery.json\n'
text += f"Результаты и логи: {run}\n"
text += 'Recovery: cleanup completed; original failure preserved in state-before-recovery.json\n'
text += f"Results and logs: {run}\n"
(parent / 'latest.txt.tmp').write_text(text)
(parent / 'latest.txt.tmp').replace(parent / 'latest.txt')
@ -97,18 +100,7 @@ def main():
reason=os.environ.get('ARCHIPELAGO_RELEASE_REASON', 'Daily release cycle'))
step = 0
worker_units = []
titles = {'preflight': 'Проверка стенда', 'freezing-and-compiling-source': 'Подготовка исходников и CLI',
'updating-flatpak-cache': 'Обновление кэша Flatpak', 'building-core': 'Сборка Core',
'building-software-adapter': 'Сборка адаптера GNOME Software',
'building-gnome-purpose-and-iso': 'Сборка GNOME', 'archiving-artifacts': 'Передача артефактов на terra',
'core-installed-acceptance': 'Приёмка Core в VM', 'gnome-installed-acceptance': 'Приёмка GNOME в VM',
'preparing-publication': 'Проверка результатов', 'signing-and-publishing': 'Подпись и публикация',
'verifying-public-endpoints': 'Проверка сайта', 'cleaning-worker': 'Очистка временных файлов',
'complete': 'Готово', 'failed': 'Ошибка'}
titles.update({'updating-kde-flatpak-cache': 'Обновление кэша Flatpak KDE',
'building-discover-adapter': 'Сборка адаптера Discover',
'building-kde-purpose-and-iso': 'Сборка KDE',
'kde-installed-acceptance': 'Приёмка KDE в VM'})
titles = status_module.TITLES
def phase(name, **extra):
state.update(state=name, stage_title=titles.get(name, name), updated=datetime.now(timezone.utc).isoformat(), **extra)
write_status(base, state)
@ -427,7 +419,7 @@ rm -rf {builds['core']}/iso-work {builds['core']}/profile {builds['core']}/extra
cleanup_module.cleanup(parent, None)
except BaseException as error:
detail = str(error)
concise = ('Команда этапа завершилась с кодом ' + str(error.returncode)) if isinstance(error, subprocess.CalledProcessError) else detail
concise = ('Stage command exited with code ' + str(error.returncode)) if isinstance(error, subprocess.CalledProcessError) else detail
phase('failed', error=concise, error_details=detail, failed_phase=state['state'])
# Stop this run's VM before archiving diagnostics; never select host VMs
# by broad process/name patterns. Preserve artifact bytes and evidence,

View file

@ -3,10 +3,10 @@
set -eu
case "${1:-status}" in
run) systemctl start --no-block archipelago-release-cycle.service
echo 'Запуск принят. Статус: archipelago-release status; журнал: archipelago-release logs' ;;
echo 'Run requested. Status: archipelago-release status; logs: archipelago-release logs' ;;
status) cat /opt/archipelago/data/private/release-cycle/latest.txt
systemctl list-timers archipelago-release-cycle.timer --no-pager ;;
logs) journalctl -u archipelago-release-cycle.service -n 80 --no-pager ;;
follow) journalctl -fu archipelago-release-cycle.service ;;
*) echo 'Использование: archipelago-release [run|status|logs|follow]' >&2; exit 2 ;;
*) echo 'Usage: archipelago-release [run|status|logs|follow]' >&2; exit 2 ;;
esac

View file

@ -1,20 +1,58 @@
<!doctype html>
<html lang="ru">
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#d9e8e1">
<meta name="description" content="Archipelago — декларативная Linux-система на базе Arch Linux с управлением образами через OSTree.">
<title>Archipelago — система из выбранных слоёв</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#080e12">
<meta name="description" content="Archipelago: Arch Linux, composed in layers. Immutable OS deployments powered by OSTree. Core, GNOME and KDE images.">
<title>Archipelago // Compose your system</title>
<link rel="icon" href="./mark.svg" type="image/svg+xml">
<link rel="stylesheet" href="./style.css"><script src="./portal.js" defer></script>
<link rel="stylesheet" href="./style.css">
<script src="./portal.js" defer></script>
</head>
<body>
<header class="navigation"><a class="brand" href="./"><img src="./mark.svg" alt="" width="38" height="38">Archipelago</a><nav aria-label="Навигация"><a href="#downloads">Образы</a><a href="https://git.fasoley.net/Archipelago/rfc">Документация ↗</a><a href="https://git.fasoley.net/Archipelago">Исходники ↗</a></nav></header>
<main>
<section class="hero"><div><p class="eyebrow">ARCH LINUX · OSTREE · DECLARATIVE</p><h1>Ваша система.<br><span>Ваш набор слоёв.</span></h1><p class="intro">Archipelago объединяет экосистему Arch Linux с декларативной композицией и управляемыми образами ОС. От минимального Core до рабочего стола — с явными обновлениями и возможностью отката.</p><a class="button" href="#downloads">Выбрать образ <span aria-hidden="true">↓</span></a><a class="text-link" href="https://git.fasoley.net/Archipelago/rfc">Изучить архитектуру ↗</a></div><div class="islands" aria-hidden="true"><div class="island top">Purpose<span>GNOME / KDE</span></div><div class="island middle">Managed Overlays<span>Ваши возможности</span></div><div class="island base">Arch Core<span>Arch Linux + OSTree</span></div></div></section>
<section class="features" aria-label="Принципы"><article><span class="number">01</span><h2>Описывайте намерение</h2><p>Версионированные YAML-манифесты определяют состав системы. Точные входы сборки закрепляются отдельно.</p></article><article><span class="number">02</span><h2>Обновляйте целиком</h2><p>Новый deployment готовится отдельно. Текущая система продолжает работать до вашей явной перезагрузки.</p></article><article><span class="number">03</span><h2>Расширяйте локально</h2><p>Host Extensions предназначены для локальных пакетов и аппаратных адаптаций. Такие композиции находятся вне официальной поддержки.</p></article></section>
<section id="downloads" class="downloads"><div class="section-heading"><div><p class="eyebrow">ISO PORTAL</p><h2>Core, GNOME и KDE Desktop</h2></div><span class="pill">Stable</span></div><p>Актуальные ISO после установочных VM-проверок публикуются в stable по решениям D-087 и D-091. Полная воспроизводимость и все критерии допуска ещё не подтверждены; ограничения указаны в <a href="./v1/releases.json">API релизов</a>, где доступны до трёх сохранённых версий.</p><p>Исправления выпускаются оперативно. Плановые пересборки: 15-го и 30-го числа, 00:00 UTC / 03:00 МСК; включение расписания ожидает перехода на snapshots. <a href="./pipeline.json">Статус JSON</a>. <span id="pipeline-status" aria-live="polite">Загружаем состояние…</span></p><div id="release-list" aria-live="polite"><p>Проверяем каталог образов…</p></div><noscript><p>Для просмотра каталога включите JavaScript. <a href="./releases.json">Каталог JSON</a>.</p></noscript><div class="planned"><span>Core · x86_64 · UEFI</span><span>GNOME Desktop · x86_64 · UEFI</span><span>KDE Desktop · x86_64 · UEFI</span></div></section>
<section class="about"><p class="eyebrow">OPEN BY DESIGN</p><h2>Архитектура обсуждается открыто</h2><p>Контракты, решения и исходники доступны в организации Archipelago. Готовность отдельных компонентов подтверждается проверками, а не только наличием спецификации.</p><a class="text-link" href="https://git.fasoley.net/Archipelago/rfc">RFC и реестр контрактов ↗</a></section>
<a class="skip" href="#main">Skip to content</a>
<header class="navigation">
<a class="brand" href="./"><img src="./mark.svg" alt="" width="32" height="32">archipelago<span class="cursor" aria-hidden="true">_</span></a>
<nav aria-label="Main navigation"><a href="#downloads">[ images ]</a><a href="https://git.fasoley.net/Archipelago/rfc">[ docs ↗ ]</a><a href="https://git.fasoley.net/Archipelago">[ source ↗ ]</a></nav>
</header>
<main id="main">
<section class="hero" aria-labelledby="hero-title">
<div class="hero-copy">
<p class="eyebrow"><span class="status-dot" aria-hidden="true"></span> ARCH LINUX / OSTREE / DECLARATIVE</p>
<h1 id="hero-title">Your system.<br>Your layers.<br><span>Your control.</span></h1>
<p class="intro">The Arch ecosystem. A composed operating system. Start with a minimal Core or a complete desktop, then make the system yours.</p>
<div class="actions"><a class="button" href="#downloads">Get an image <span aria-hidden="true">↘</span></a><a class="text-link" href="https://git.fasoley.net/Archipelago/rfc">Read the architecture ↗</a></div>
<p class="hero-meta">x86_64 <span>/</span> UEFI <span>/</span> immutable deployments</p>
</div>
<div class="terminal" aria-label="Illustrative system composition">
<div class="terminal-bar"><span>COMPOSITION.MAP</span><span aria-hidden="true">─ □ ×</span></div>
<div class="terminal-body">
<p class="prompt"><span>archipelago</span> ~/system</p>
<p class="comment"># An OS built from explicit choices</p>
<div class="layer"><span class="layer-index">03</span><div><strong>Host Extensions</strong><small>your local package requests</small></div><span class="layer-tag">LOCAL</span></div>
<div class="layer"><span class="layer-index">02</span><div><strong>Managed Overlays</strong><small>hardware + features</small></div><span class="layer-tag">OPTIONAL</span></div>
<div class="layer"><span class="layer-index">01</span><div><strong>Purpose</strong><small>GNOME / KDE Desktop</small></div><span class="layer-tag">0..1</span></div>
<div class="layer core"><span class="layer-index">00</span><div><strong>Arch Core</strong><small>the common foundation</small></div><span class="layer-tag">BASE</span></div>
<p class="composition-result"><span aria-hidden="true">└─▶</span> one complete OSTree deployment</p>
<p class="comment diagram-note">Architecture view, not a live system report.</p>
</div>
</div>
</section>
<section class="features" aria-label="System principles">
<article><p class="eyebrow">01 / DECLARE</p><h2>Intent is explicit.</h2><p>Versioned manifests describe the system. Locked inputs identify exactly what goes into a composition.</p></article>
<article><p class="eyebrow">02 / DEPLOY</p><h2>Update as a whole.</h2><p>A new deployment is prepared alongside the running system. Reboot when you choose. Keep a rollback path.</p></article>
<article><p class="eyebrow">03 / EXTEND</p><h2>Keep your options.</h2><p>Use managed layers or local Host Extensions. Package origin and effective changes remain visible in the system's support status.</p></article>
</section>
<section id="downloads" class="downloads" aria-labelledby="download-title">
<div class="section-heading"><div><p class="eyebrow">/ RELEASE REGISTRY</p><h2 id="download-title">Choose your starting point.</h2></div><a class="api-link" href="./v1/releases.json">releases.json ↗</a></div>
<div class="pipeline"><div class="pipeline-label"><span class="status-dot" aria-hidden="true"></span> PIPELINE</div><span id="pipeline-status" role="status">Loading status…</span><a href="./pipeline.json">JSON ↗</a></div>
<div id="release-list" aria-live="polite"><p class="empty">Reading the release registry…</p></div>
<noscript><p>JavaScript is needed to render release cards. Browse the <a href="./releases.json">download catalog</a> or the <a href="./v1/releases.json">release API</a>.</p></noscript>
<div class="release-notes"><p><span class="note-label">RELEASE SCOPE</span> Stable images are published after installed-VM checks under D-087 and D-091. Full reproducibility and all admission gates are not yet verified. Exact limitations and up to three retained versions are recorded in the release API.</p><p><span class="note-label">CADENCE</span> Fixes ship promptly. Scheduled rebuilds are planned for the 15th and 30th at 00:00 UTC; scheduling awaits the repository snapshot rollout.</p></div>
</section>
<section class="about"><div><p class="eyebrow">/ OPEN BY DESIGN</p><h2>Read the decisions.<br>Inspect the source.</h2></div><div><p>The architecture, contracts and implementation live in the open. Follow the RFCs from an accepted decision to evidence of working software.</p><a class="text-link" href="https://git.fasoley.net/Archipelago/rfc">Explore the RFC repository ↗</a></div></section>
</main>
<footer><a class="brand" href="./">Archipelago</a><p>Независимый проект на базе <a href="https://archlinux.org/">Arch Linux</a>. Не является официальным проектом Arch Linux и не подразумевает его одобрения. Название и товарные знаки Arch Linux принадлежат их правообладателям. Графический знак Archipelago — самостоятельная иллюстрация.</p><a href="https://archlinux.org/trademark-policy/">Политика товарных знаков Arch Linux ↗</a></footer>
</body></html>
<footer><div class="footer-top"><a class="brand" href="./">archipelago<span aria-hidden="true">_</span></a><span>BUILT ON ARCH. COMPOSED WITH OSTREE.</span></div><p>An independent project based on <a href="https://archlinux.org/">Arch Linux</a>. Not an official Arch Linux project or endorsement. Arch Linux names and trademarks belong to their respective owners. <a href="https://archlinux.org/trademark-policy/">Trademark policy ↗</a></p></footer>
</body>
</html>

View file

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="22" fill="#cee9dd"/><path d="M13 45 28 14h8l15 31H40l-8-18-8 18Z" fill="#1b6758"/><path d="M14 50h36" stroke="#387ba1" stroke-width="4" stroke-linecap="round"/><circle cx="32" cy="44" r="4" fill="#387ba1"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect x="1" y="1" width="62" height="62" fill="#0d161c" stroke="#267c88" stroke-width="2"/><path d="M13 45 28 14h8l15 31H40l-8-18-8 18Z" fill="#35d2d0"/><path d="M14 52h36" stroke="#1793d1" stroke-width="3"/><path d="M29 42h6v6h-6z" fill="#1793d1"/></svg>

Before

Width:  |  Height:  |  Size: 306 B

After

Width:  |  Height:  |  Size: 316 B

View file

@ -1,51 +1,90 @@
"use strict";
(async () => {
const label = document.querySelector('#pipeline-status');
try {
const response = await fetch('./pipeline.json', {cache: 'no-store'});
if (!response.ok) throw new Error('status unavailable');
const status = await response.json();
const names = {'preflight': 'Проверка среды', 'freezing-and-compiling-source': 'Сборка CLI',
'updating-flatpak-cache': 'Обновление кэша Flatpak',
'building-core': 'Сборка Core', 'building-core-then-purpose': 'Сборка Core и GNOME',
'building-gnome-purpose-and-iso': 'Сборка GNOME Purpose и ISO',
'archiving-artifacts': 'Передача на terra', 'core-installed-acceptance': 'Проверка установленного Core',
'gnome-installed-acceptance': 'Проверка установленного GNOME',
'preparing-publication': 'Проверка свидетельств', 'signing-and-publishing': 'Подпись и публикация',
'verifying-public-endpoints': 'Проверка скачивания', 'cleaning-worker': 'Очистка сборочного окружения',
'complete': 'Цикл завершён', 'failed': 'Цикл завершился ошибкой'};
let title = names[status.state] || status.stage_title || status.state;
if (status.state === 'failed' && status.published) {
title = status.failed_phase === 'cleaning-worker'
? 'Образы опубликованы; ошибка очистки сборочного окружения'
: 'Образы опубликованы; ошибка после публикации';
} else if (status.state === 'complete' && status.recovery) {
title = 'Образы опубликованы; очистка восстановлена, цикл завершён';
}
label.textContent = `${title} · ${status.run}`;
} catch { label.textContent = 'Состояние временно недоступно.'; }
const names = {
'starting': 'Starting release cycle', 'preflight': 'Checking build environment',
'freezing-and-compiling-source': 'Freezing sources and building CLI',
'updating-flatpak-cache': 'Refreshing GNOME Flatpak cache',
'updating-kde-flatpak-cache': 'Refreshing KDE Flatpak cache',
'building-software-adapter': 'Building GNOME Software adapter',
'building-discover-adapter': 'Building Discover adapter',
'building-core': 'Building Core', 'building-core-then-purpose': 'Building Core and Purpose',
'building-gnome-purpose-and-iso': 'Building GNOME Purpose and ISO',
'building-kde-purpose-and-iso': 'Building KDE Purpose and ISO',
'archiving-artifacts': 'Archiving artifacts on terra',
'core-installed-acceptance': 'Core installed-VM acceptance',
'gnome-installed-acceptance': 'GNOME installed-VM acceptance',
'kde-installed-acceptance': 'KDE installed-VM acceptance',
'preparing-publication': 'Validating release evidence',
'signing-and-publishing': 'Signing and publishing',
'verifying-public-endpoints': 'Verifying public downloads',
'cleaning-worker': 'Cleaning build workspace',
'complete': 'Release cycle complete', 'failed': 'Release cycle failed'
};
async function refresh() {
try {
const response = await fetch('./pipeline.json', {cache: 'no-store'});
if (!response.ok) throw new Error('status unavailable');
const status = await response.json();
if (typeof status.state !== 'string' || typeof status.run !== 'string') throw new Error('invalid status');
let title = names[status.state] || 'Release cycle in progress';
if (status.state === 'failed' && status.published) {
title = status.failed_phase === 'cleaning-worker'
? 'Images published; workspace cleanup failed' : 'Images published; post-publication step failed';
} else if (status.state === 'complete' && status.recovery) {
title = 'Images published; cleanup recovered; cycle complete';
}
label.textContent = `${title} / ${status.run}`;
} catch { label.textContent = 'Pipeline status temporarily unavailable.'; }
}
await refresh();
// Schedule after completion so slow requests cannot accumulate.
async function tick() {
if (!document.hidden) await refresh();
window.setTimeout(tick, 30000);
}
window.setTimeout(tick, 30000);
})();
(async () => {
const list = document.querySelector("#release-list");
const message = text => { const p = document.createElement("p"); p.className = "empty"; p.textContent = text; list.replaceChildren(p); };
const list = document.querySelector('#release-list');
const message = text => { const p = document.createElement('p'); p.className = 'empty'; p.textContent = text; list.replaceChildren(p); };
const profiles = {
'Arch Core': ['Core', 'A minimal foundation. Build your own environment.'],
'GNOME Desktop': ['GNOME Desktop', 'A focused workspace powered by GNOME.'],
'KDE Desktop': ['KDE Desktop', 'A configurable desktop powered by KDE Plasma.']
};
try {
const response = await fetch("./releases.json", {cache: "no-store"});
if (!response.ok) throw new Error("catalog unavailable");
const response = await fetch('./releases.json', {cache: 'no-store'});
if (!response.ok) throw new Error('catalog unavailable');
const catalog = await response.json();
if (catalog.version !== 1 || !Array.isArray(catalog.releases)) throw new Error("unknown catalog");
if (!catalog.releases.length) { message("Публичных ISO пока нет. Идут экспериментальные проверки Core; релизы появятся здесь после прохождения всех обязательных критериев."); return; }
const cards = catalog.releases.map(release => {
if (!['hardware-test','testing','stable'].includes(release.channel) || !/^[0-9a-f]{64}$/.test(release.sha256)) throw new Error("invalid release");
if (catalog.version !== 1 || !Array.isArray(catalog.releases)) throw new Error('unknown catalog');
if (!catalog.releases.length) { message('No public images yet. Check back after the next verified release.'); return; }
const cards = catalog.releases.map((release, index) => {
if (!['hardware-test', 'testing', 'stable'].includes(release.channel) || !/^[0-9a-f]{64}$/.test(release.sha256)) throw new Error('invalid release');
const url = new URL(release.url, location.href);
if (url.origin !== location.origin || !url.pathname.startsWith('/archipelago/iso/')) throw new Error("invalid artifact URL");
if (url.origin !== location.origin || !url.pathname.startsWith('/archipelago/iso/')) throw new Error('invalid artifact URL');
const [name, description] = profiles[release.variant] || ['OS image', 'An Archipelago system image.'];
const card = document.createElement('article'); card.className = 'release';
const title = document.createElement('h3'); title.textContent = `${release.variant} · ${release.architecture} · ${release.channel}`;
const link = document.createElement('a'); link.href = url.href; link.textContent = `Скачать ISO · ${release.version}`;
const hash = document.createElement('p'); const code = document.createElement('code'); code.textContent = `SHA-256: ${release.sha256}`; hash.append(code);
const note = document.createElement('p');
if (release.channel === 'hardware-test') note.textContent = 'Экспериментальный образ для проверки на железе; не testing/stable.';
card.append(title,note,link,hash); return card;
const top = document.createElement('div'); top.className = 'release-top';
const number = document.createElement('span'); number.className = 'release-index'; number.textContent = `/${String(index + 1).padStart(2, '0')}`;
const channel = document.createElement('span'); channel.className = 'channel'; channel.textContent = release.channel;
top.append(number, channel);
const title = document.createElement('h3'); title.textContent = name;
const note = document.createElement('p'); note.className = 'release-description';
note.textContent = release.channel === 'hardware-test' ? 'Experimental hardware-test image; not a testing or stable release.' : description;
const meta = document.createElement('p'); meta.className = 'release-meta';
meta.append(document.createTextNode(`${release.architecture} / UEFI`), document.createElement('br'));
const version = document.createElement('span'); version.textContent = release.version;
meta.append('BUILD ', version);
const link = document.createElement('a'); link.className = 'button'; link.href = url.href; link.setAttribute('aria-label', `Download ${name} ISO, ${release.version}`);
const arrow = document.createElement('span'); arrow.setAttribute('aria-hidden', 'true'); arrow.textContent = '↓'; link.append('Download ISO', arrow);
const hash = document.createElement('p'); hash.className = 'hash';
const hashLabel = document.createElement('span'); hashLabel.textContent = 'SHA256';
const code = document.createElement('code'); code.textContent = release.sha256;
hash.append(hashLabel, code);
card.append(top, title, note, meta, link, hash);
return card;
});
list.replaceChildren(...cards);
} catch { message("Каталог релизов временно недоступен. Непроверенные ссылки на скачивание не отображаются."); }
} catch { message('Release registry temporarily unavailable. Download links will return when the catalog can be verified.'); }
})();

View file

@ -1 +1,126 @@
:root{color-scheme:light dark;--bg:#f5f7f2;--ink:#182c29;--muted:#4d625b;--surface:#e4ece6;--accent:#1b6758;--soft:#cee9dd;--line:#c2d0c7;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink)}a{color:inherit;text-underline-offset:.25em}a:focus-visible{outline:3px solid var(--accent);outline-offset:6px}main,.navigation,footer{max-width:1200px;margin:auto;padding:24px 40px}.navigation{display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:10px;font-weight:750;font-size:22px;text-decoration:none;letter-spacing:-.7px}nav{display:flex;gap:24px;font-size:14px}nav a{text-decoration:none}.hero{display:grid;grid-template-columns:1.5fr 1fr;align-items:center;gap:50px;padding:70px 0 80px}.eyebrow{letter-spacing:.16em;font-size:11px;font-weight:750;color:var(--accent)}h1{font-size:clamp(40px,5.5vw,68px);letter-spacing:-3px;line-height:1.08;margin:22px 0}h1 span{color:var(--accent)}.intro{font-size:18px;line-height:1.75;color:var(--muted);max-width:630px}.button{display:inline-flex;gap:32px;align-items:center;background:var(--accent);color:#fff;border-radius:36px;padding:18px 24px;text-decoration:none;font-weight:650;margin:20px 22px 12px 0}.text-link{font-size:14px;font-weight:650}.islands{display:grid;gap:18px;transform:rotate(-6deg);padding:22px}.island{border-radius:36px;padding:34px;text-align:center;font-size:23px;font-weight:750;box-shadow:0 14px 0 #163c2910}.island span{display:block;margin-top:8px;font-size:12px;letter-spacing:.04em;font-weight:450}.top{background:#d8e5ff;color:#253956;margin-left:30px}.middle{background:#f2dfbb;color:#4c3d24;margin-right:25px}.base{background:var(--soft);color:#234f40}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.features article{background:var(--surface);padding:28px;border-radius:28px}.number{display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;font-size:12px}h2{font-size:25px;line-height:1.2;letter-spacing:-.7px}.features p,.downloads p,.about p,footer p{color:var(--muted);line-height:1.7}.features h2{font-size:20px}.downloads{margin:65px 0;padding:36px;border:1px solid var(--line);border-radius:36px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.section-heading h2{font-size:34px;margin:8px 0}.pill{background:var(--soft);color:var(--accent);padding:10px 16px;border-radius:30px;font-size:12px;white-space:nowrap}.empty{background:var(--surface);border-radius:20px;padding:24px;margin:28px 0}.planned{display:flex;flex-wrap:wrap;gap:10px}.planned span{font-size:12px;border:1px solid var(--line);border-radius:20px;padding:8px 12px}.release{background:var(--surface);border-radius:24px;padding:24px;margin:20px 0}.release code{overflow-wrap:anywhere;font-size:12px}.release a{display:inline-block;margin:8px 16px 8px 0}.about{max-width:730px;padding-bottom:65px}.about h2{font-size:35px}footer{border-top:1px solid var(--line);padding-top:32px;padding-bottom:40px;font-size:12px}footer p{max-width:850px}@media(max-width:800px){main,.navigation,footer{padding-left:22px;padding-right:22px}.navigation{align-items:flex-start;flex-direction:column}nav{gap:16px;flex-wrap:wrap}.hero{grid-template-columns:1fr;padding:35px 0;gap:16px}.islands{max-width:420px;margin:auto;width:100%}.island{padding:22px}.features{grid-template-columns:1fr}h1{letter-spacing:-2px}.downloads{padding:24px;margin:40px 0}.section-heading{align-items:flex-start;flex-direction:column}}@media(prefers-color-scheme:dark){:root{--bg:#101c19;--ink:#e1ece5;--muted:#b4c7bc;--surface:#20312b;--accent:#98d5b9;--soft:#274a3c;--line:#3c5347}.button{background:#a8dfc5;color:#173f31}.base{color:#cbefdc}.top{background:#334560;color:#e2eaff}.middle{background:#514735;color:#f6e6c7}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.islands{transform:none}}
:root {
color-scheme: dark;
--bg: #080e12;
--panel: #0d161c;
--ink: #dce8ed;
--muted: #8dabb8;
--accent: #35d2d0;
--arch: #1793d1;
--line: #243741;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.65; }
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 730px; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 85% 25%, #1793d115, transparent 65%); }
::selection { background: var(--accent); color: var(--bg); }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #a4f7ee; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
main, .navigation, footer { max-width: 1264px; margin: auto; padding-inline: 40px; }
.skip { position: absolute; top: -100px; left: 20px; padding: 12px; background: var(--panel); z-index: 5; }
.skip:focus { top: 8px; }
.navigation { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 700; letter-spacing: -1px; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); margin-left: -7px; }
nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 12px; }
nav a { color: var(--muted); text-decoration: none; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 60px; padding: 86px 0 78px; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; color: var(--accent); font-weight: 600; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 8px; box-shadow: 0 0 12px #35d2d044; }
h1 { font-size: clamp(36px, 4.6vw, 61px); line-height: 1.12; letter-spacing: -3px; margin: 25px 0; font-weight: 700; }
h1 span { color: var(--accent); }
.intro { color: var(--muted); font-size: 14px; line-height: 1.9; max-width: 500px; }
.actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; margin: 30px 0 20px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 26px; padding: 12px 18px; background: var(--accent); border: 1px solid var(--accent); color: var(--bg); text-decoration: none; font-size: 12px; font-weight: 700; transition: background .15s; }
.button:hover { background: #a4f7ee; color: var(--bg); }
.text-link { font-size: 12px; }
.hero-meta { color: var(--muted); font-size: 10px; }
.hero-meta span { color: var(--line); padding: 0 7px; }
.terminal { min-width: 0; background: var(--panel); border: 1px solid #31505c; box-shadow: 8px 8px 0 #081015, 9px 9px 0 var(--line); }
.terminal-bar { padding: 11px 17px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.terminal-body { padding: 23px; }
.prompt { font-size: 12px; margin: 0; color: var(--muted); }
.prompt::before { content: "$ "; color: var(--accent); }
.prompt span { color: var(--ink); }
.comment { color: var(--muted); font-size: 10px; margin: 7px 0 23px; }
.layer { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); padding: 13px 12px; margin-top: 8px; }
.layer-index { color: var(--arch); font-size: 11px; }
.layer strong { font-size: 12px; font-weight: 500; }
.layer small { display: block; font-size: 10px; color: var(--muted); }
.layer-tag { color: var(--muted); font-size: 8px; letter-spacing: 1px; margin-left: auto; }
.core { border-color: #267c88; background: #35d2d008; }
.core strong, .composition-result span { color: var(--accent); }
.composition-result { font-size: 11px; margin: 21px 0 0; }
.diagram-note { margin: 7px 0 0; font-size: 9px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.features article { padding: 26px 28px 25px; }
.features article:first-child { padding-left: 0; }
.features article:last-child { padding-right: 0; }
.features article + article { border-left: 1px solid var(--line); }
h2 { font-size: 24px; line-height: 1.4; letter-spacing: -1px; margin: 12px 0; }
.features h2 { font-size: 17px; letter-spacing: -.5px; }
.features p:not(.eyebrow) { color: var(--muted); font-size: 12px; }
.downloads { padding: 70px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 25px; }
.api-link { font-size: 11px; margin-bottom: 16px; }
.pipeline { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; border: 1px solid var(--line); background: var(--panel); padding: 14px 18px; font-size: 10px; margin-bottom: 20px; }
.pipeline-label { color: var(--accent); letter-spacing: 1px; white-space: nowrap; }
#pipeline-status { color: var(--muted); flex: 1; min-width: 180px; overflow-wrap: anywhere; }
.pipeline a { margin-left: auto; }
#release-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.release { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--panel); padding: 24px; transition: border-color .15s; }
.release:hover { border-color: var(--accent); }
.release-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.release-index { font-size: 12px; color: var(--muted); }
.channel { color: var(--accent); font-size: 9px; padding: 2px 7px; border: 1px solid #267c88; text-transform: uppercase; }
.release h3 { font-size: 21px; margin: 23px 0 4px; letter-spacing: -.7px; }
.release-description { color: var(--muted); font-size: 11px; min-height: 44px; margin: 4px 0 20px; }
.release-meta { border-block: 1px solid var(--line); padding: 13px 0; margin: 0 0 20px; color: var(--muted); font-size: 10px; line-height: 2; }
.release-meta span { color: var(--ink); }
.release .button { width: 100%; margin-top: auto; }
.hash { font-size: 9px; color: var(--muted); overflow-wrap: anywhere; margin: 18px 0 0; }
.hash span { display: block; color: var(--accent); letter-spacing: 1px; margin-bottom: 5px; }
.hash code { font: inherit; }
.empty { grid-column: 1 / -1; color: var(--muted); border: 1px dashed var(--line); padding: 25px; }
.release-notes { display: grid; grid-template-columns: 1.5fr 1fr; gap: 35px; margin-top: 20px; color: var(--muted); font-size: 10px; }
.note-label { display: block; color: var(--ink); letter-spacing: 1px; margin-bottom: 7px; }
.about { border-top: 1px solid var(--line); padding: 45px 0 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.about p:not(.eyebrow) { color: var(--muted); font-size: 12px; max-width: 480px; }
footer { border-top: 1px solid var(--line); padding-block: 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-top > span { font-size: 9px; letter-spacing: 1px; color: var(--muted); }
footer .brand { font-size: 18px; }
footer > p { max-width: 850px; font-size: 10px; color: var(--muted); margin: 20px 0 0; }
@media (max-width: 950px) {
.hero { gap: 30px; }
.terminal-body { padding: 16px; }
.layer-tag { display: none; }
.release { padding: 18px; }
.release h3 { font-size: 18px; }
}
@media (max-width: 760px) {
main, .navigation, footer { padding-inline: 22px; }
.navigation { flex-direction: column; align-items: flex-start; padding-block: 20px; gap: 16px; }
nav { gap: 20px; }
.hero { grid-template-columns: 1fr; padding: 40px 0 45px; gap: 30px; }
h1 { font-size: clamp(36px, 9vw, 58px); letter-spacing: -2px; }
.terminal { margin-right: 9px; }
.layer-tag { display: block; }
.features { grid-template-columns: 1fr; }
.features article, .features article:first-child, .features article:last-child { padding: 18px 0; }
.features article + article { border-left: 0; border-top: 1px solid var(--line); }
.downloads { padding: 40px 0; }
.section-heading { align-items: start; flex-direction: column; gap: 0; }
#release-list, .release-notes, .about { grid-template-columns: 1fr; }
.release { padding: 23px; }
.release-description { min-height: 0; }
.release-notes { gap: 0; }
.about { gap: 10px; padding: 30px 0; }
.footer-top { align-items: start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
* { transition: none !important; }
}