ventures: refresh havre from havre-open

This commit is contained in:
github-actions[bot] committed 2026-10-19 03:03:42 +00:00
1 parent 86e598bd72
commit 3f5e0052d1
5 files changed
+23 -2

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@
<header class="mast" id="top">
<h1>HAVRE</h1>
<p class="motto">a harbor for characters. <br>talk to venice characters on your own key. <br>no account. no server. nothing kept but what you keep.</p>
<nav class="nav" aria-label="On this page"><a href="#how">how it works</a> / <a href="#agents">for agents</a> / <a href="#costs">costs</a> / <a href="#plans">early access</a></nav>
<nav class="nav" aria-label="On this page"><a href="#how">how it works</a> / <a href="#agents">for agents</a> / <a href="#costs">costs</a> / <a href="#plans">early access</a> / <a href="open/">open studio (beta)</a></nav>
</header>
<form class="keybar" id="keyform" autocomplete="off" aria-label="Your Venice API key">
+8
View File
@@ -0,0 +1,8 @@
(function () {
try {
if (sessionStorage.getItem("venice-auth")) return;
var raw = sessionStorage.getItem("havre.key") || localStorage.getItem("havre.key");
var key = raw ? JSON.parse(raw) : "";
if (typeof key === "string" && key) sessionStorage.setItem("venice-auth", key);
} catch (e) { /* no key then */ }
})();
+1 -1
View File
@@ -1,6 +1,6 @@
<!doctype html>
<html lang="en">
<head>
<head><script src="/open/havre-key.js"></script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<meta name="theme-color" content="#0a0a0a" />
Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 91 KiB

+13
View File
@@ -10,6 +10,19 @@ git -C "$src" checkout -q "$OV_REF"
(cd "$src" && npm ci --silent --no-audit --no-fund >/dev/null && npx vite build --base=/open/ >/dev/null)
rm -rf open
cp -R "$src/dist" open
# Havre's key, handed to openvenice: same origin, so it's only a copy between two storage slots in this browser
cat > open/havre-key.js <<'EOF'
(function () {
try {
if (sessionStorage.getItem("venice-auth")) return;
var raw = sessionStorage.getItem("havre.key") || localStorage.getItem("havre.key");
var key = raw ? JSON.parse(raw) : "";
if (typeof key === "string" && key) sessionStorage.setItem("venice-auth", key);
} catch (e) { /* no key then */ }
})();
EOF
sed -i.bak 's|<head>|<head><script src="/open/havre-key.js"></script>|' open/index.html && rm -f open/index.html.bak
grep -q havre-key.js open/index.html
cat > open/LICENSE.txt <<EOF
openvenice by nikshepsvn, MIT License: https://github.com/nikshepsvn/openvenice
Built into Havre at /open/ from commit $OV_REF, unchanged.