Files
hermes-ui/packages/client/index.html
T
toor 4baccd5d88 Phase 005: vendor ArkScope, land the Arco style baseline, and fix bridge interpreter resolution
- Vendor ArkScope decorative layers (ScrambleTitle / IsometricWave) with provenance notes; decorative-only per AGENTS.md red lines
- Migrate theme tokens to Arco, register the Arco theme, and add hook adapter composables (useMessage / useDialog / useNotification) with matching signatures
- Sample pages: LoginView and AppSidebar on the new baseline; docs/arco-mapping.md and docs/ui-baseline.md land
- agent-bridge: prefer the PM-selected venv from facts.json over legacy in-tree venvs (legacy lacks the mcp extra, so every MCP server showed 0 tools / not connected)
- agent-bridge python (vendored, deliberate deviation): MCP discovery import fallback and pyyaml -> hermes_yaml so plugins and MCP work under the PM env; install the mcp extra via `hermes pm install --extra mcp`
- Chat-chain fragment: docs/chat-chain-changes/2026-10-17-phase005-arkscope-baseline.md

Verified: harness:check, test (2020 passed), test:e2e (30 passed), build all green; manual: plugins 100/0 warnings, MCP 6/6 servers connected with 104 tools.
2026-10-17 09:45:30 +08:00

127 lines
3.2 KiB
HTML

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/logo.png" />
<link rel="manifest" href="/manifest.webmanifest" />
<meta name="theme-color" content="#f7f7f4" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="hermes-ui" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>hermes-ui</title>
<style>
html,
body,
#app {
min-height: 100%;
}
body {
margin: 0;
background: #f7f7f4;
}
html.dark body {
background: #1a1a1a;
}
.boot-fallback {
min-height: 100vh;
display: grid;
place-items: center;
color: #222222;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
html.dark .boot-fallback {
color: #f0f0f0;
}
.boot-fallback__logo-wrap {
position: relative;
display: block;
width: 72px;
height: 72px;
border-radius: 18px;
overflow: hidden;
}
.boot-fallback__logo-wrap::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.85) 48%, transparent 66%);
transform: translateX(-140%);
mix-blend-mode: screen;
pointer-events: none;
-webkit-mask: url("/logo.png") center / contain no-repeat;
mask: url("/logo.png") center / contain no-repeat;
animation: boot-logo-shimmer 1.8s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
.boot-fallback__logo-wrap img {
width: 100%;
height: 100%;
object-fit: contain;
border-radius: 18px;
}
@keyframes boot-logo-shimmer {
0% {
transform: translateX(-140%);
}
52%,
100% {
transform: translateX(140%);
}
}
</style>
<!-- Prevent FOUC by applying theme classes immediately -->
<script>
(function() {
try {
const brightness = localStorage.getItem('hermes_brightness') || 'system';
const style = localStorage.getItem('hermes_style') || 'ink';
// Resolve dark mode
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
const isDark = brightness === 'dark' || (brightness === 'system' && prefersDark);
// Resolve comic style
const isComic = style === 'comic';
// Apply classes immediately
if (isDark) {
document.documentElement.classList.add('dark');
}
if (isComic) {
document.documentElement.classList.add('comic');
}
// Arco Design dark theme mechanism (Phase 005)
document.documentElement.setAttribute('arco-theme', isDark ? 'dark' : 'light');
} catch (e) {
console.warn('Failed to apply theme:', e);
}
})();
</script>
</head>
<body>
<div id="app">
<div class="boot-fallback">
<div class="boot-fallback__brand">
<span class="boot-fallback__logo-wrap">
<img src="/logo.png" alt="" />
</span>
</div>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>