From 18e7a04bf6bd9ee52595c5c460e3a98c57cce2f3 Mon Sep 17 00:00:00 2001 From: TheFlow Date: Tue, 14 Oct 2025 10:53:29 +1300 Subject: [PATCH] feat: add version control system and PWA support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implements cache busting and progressive web app features: **Version Management:** - version.json manifest with changelog tracking - Service worker with automatic update checking (hourly) - Update notification UI with changelog display - Configurable forced updates after timeout - Cache control headers for optimal performance **PWA Features:** - manifest.json with app shortcuts - Apple touch icon support - "Add to Home Screen" functionality - Offline support via service worker **Cache Strategy:** - HTML: 5-minute cache with revalidation - CSS/JS: 1-year immutable cache - Images: 1-year immutable cache - version.json/service-worker.js: no-cache **Integration:** - All main pages updated with PWA meta tags - Version manager loaded on all user-facing pages - Production deployment successful Users who previously visited the site will now automatically receive update notifications when version changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- public/docs.html | 262 ++++--- public/faq.html | 14 + public/implementer.html | 43 +- public/index.html | 194 ++--- public/js/version-manager.js | 311 ++++++++ public/leader.html | 1344 ++++++++++++++-------------------- public/manifest.json | 47 ++ public/researcher.html | 823 ++++++++++++--------- public/service-worker.js | 180 +++++ public/version.json | 11 + src/server.js | 34 + 11 files changed, 1888 insertions(+), 1375 deletions(-) create mode 100644 public/js/version-manager.js create mode 100644 public/manifest.json create mode 100644 public/service-worker.js create mode 100644 public/version.json diff --git a/public/docs.html b/public/docs.html index e99afbec..48994132 100644 --- a/public/docs.html +++ b/public/docs.html @@ -5,6 +5,17 @@ Framework Documentation | Tractatus AI Safety + + + + + + + + + + + @@ -385,91 +443,17 @@
-

Framework Documentation

-

Technical specifications, guides, and reference materials

-
-
- - -
-
- -
-
- - +
+
+

Framework Documentation

+

Technical specifications, guides, and reference materials

+
+
-
- - -
- -
- - -
- - -
- - -
- - -
- - -
- - - - - - -
- - - - - -
@@ -601,7 +585,7 @@
-
+
@@ -623,7 +607,7 @@
-