@bitseek/hermes-webui 0.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +213 -0
- package/bin/hermes-webui.mjs +588 -0
- package/package.json +25 -0
- package/scripts/sync-vendor.mjs +74 -0
- package/templates/launchd/com.bitseek.hermes-webui.plist +21 -0
- package/templates/systemd/hermes-webui.service +13 -0
- package/templates/windows/hermes-webui-task.ps1 +3 -0
- package/vendor/agent-frontend-shell/.bitseek-source.json +6 -0
- package/vendor/agent-frontend-shell/.dockerignore +7 -0
- package/vendor/agent-frontend-shell/.env.docker.example +89 -0
- package/vendor/agent-frontend-shell/.env.example +34 -0
- package/vendor/agent-frontend-shell/.github/FUNDING.yml +3 -0
- package/vendor/agent-frontend-shell/.github/workflows/browser-smoke.yml +42 -0
- package/vendor/agent-frontend-shell/.github/workflows/docker-smoke.yml +233 -0
- package/vendor/agent-frontend-shell/.github/workflows/native-windows-startup.yml +132 -0
- package/vendor/agent-frontend-shell/.github/workflows/release.yml +57 -0
- package/vendor/agent-frontend-shell/.github/workflows/tests.yml +88 -0
- package/vendor/agent-frontend-shell/.vscode/launch.json +59 -0
- package/vendor/agent-frontend-shell/.vscode/settings.json +13 -0
- package/vendor/agent-frontend-shell/AGENTS.md +80 -0
- package/vendor/agent-frontend-shell/ARCHITECTURE.md +1658 -0
- package/vendor/agent-frontend-shell/BUGS.md +52 -0
- package/vendor/agent-frontend-shell/CHANGELOG.md +7295 -0
- package/vendor/agent-frontend-shell/CONTRIBUTING.md +205 -0
- package/vendor/agent-frontend-shell/CONTRIBUTORS.md +107 -0
- package/vendor/agent-frontend-shell/DESIGN.md +173 -0
- package/vendor/agent-frontend-shell/Dockerfile +91 -0
- package/vendor/agent-frontend-shell/LICENSE +21 -0
- package/vendor/agent-frontend-shell/README-CUSTOM.md +76 -0
- package/vendor/agent-frontend-shell/README.md +705 -0
- package/vendor/agent-frontend-shell/ROADMAP.md +351 -0
- package/vendor/agent-frontend-shell/SPRINTS.md +147 -0
- package/vendor/agent-frontend-shell/TESTING.md +1932 -0
- package/vendor/agent-frontend-shell/THEMES.md +170 -0
- package/vendor/agent-frontend-shell/api/__init__.py +1 -0
- package/vendor/agent-frontend-shell/api/agent_health.py +392 -0
- package/vendor/agent-frontend-shell/api/agent_sessions.py +782 -0
- package/vendor/agent-frontend-shell/api/auth.py +592 -0
- package/vendor/agent-frontend-shell/api/background.py +87 -0
- package/vendor/agent-frontend-shell/api/clarify.py +238 -0
- package/vendor/agent-frontend-shell/api/commands.py +124 -0
- package/vendor/agent-frontend-shell/api/compression_anchor.py +134 -0
- package/vendor/agent-frontend-shell/api/config.py +5178 -0
- package/vendor/agent-frontend-shell/api/dashboard_probe.py +255 -0
- package/vendor/agent-frontend-shell/api/extensions.py +253 -0
- package/vendor/agent-frontend-shell/api/gateway_chat.py +435 -0
- package/vendor/agent-frontend-shell/api/gateway_watcher.py +230 -0
- package/vendor/agent-frontend-shell/api/goals.py +608 -0
- package/vendor/agent-frontend-shell/api/helpers.py +474 -0
- package/vendor/agent-frontend-shell/api/kanban_bridge.py +1255 -0
- package/vendor/agent-frontend-shell/api/metering.py +194 -0
- package/vendor/agent-frontend-shell/api/models.py +4210 -0
- package/vendor/agent-frontend-shell/api/oauth.py +770 -0
- package/vendor/agent-frontend-shell/api/onboarding.py +1046 -0
- package/vendor/agent-frontend-shell/api/passkeys.py +365 -0
- package/vendor/agent-frontend-shell/api/profiles.py +1499 -0
- package/vendor/agent-frontend-shell/api/providers.py +2175 -0
- package/vendor/agent-frontend-shell/api/request_diagnostics.py +160 -0
- package/vendor/agent-frontend-shell/api/rollback.py +320 -0
- package/vendor/agent-frontend-shell/api/routes.py +13990 -0
- package/vendor/agent-frontend-shell/api/run_journal.py +284 -0
- package/vendor/agent-frontend-shell/api/runner_client.py +156 -0
- package/vendor/agent-frontend-shell/api/runtime_adapter.py +431 -0
- package/vendor/agent-frontend-shell/api/session_discoverability.py +640 -0
- package/vendor/agent-frontend-shell/api/session_events.py +45 -0
- package/vendor/agent-frontend-shell/api/session_lifecycle.py +208 -0
- package/vendor/agent-frontend-shell/api/session_ops.py +207 -0
- package/vendor/agent-frontend-shell/api/session_recovery.py +655 -0
- package/vendor/agent-frontend-shell/api/skill_usage.py +32 -0
- package/vendor/agent-frontend-shell/api/startup.py +128 -0
- package/vendor/agent-frontend-shell/api/state_sync.py +187 -0
- package/vendor/agent-frontend-shell/api/streaming.py +7048 -0
- package/vendor/agent-frontend-shell/api/system_health.py +167 -0
- package/vendor/agent-frontend-shell/api/terminal.py +410 -0
- package/vendor/agent-frontend-shell/api/turn_journal.py +214 -0
- package/vendor/agent-frontend-shell/api/updates.py +1261 -0
- package/vendor/agent-frontend-shell/api/upload.py +322 -0
- package/vendor/agent-frontend-shell/api/usage.py +26 -0
- package/vendor/agent-frontend-shell/api/workspace.py +867 -0
- package/vendor/agent-frontend-shell/api/workspace_git.py +1261 -0
- package/vendor/agent-frontend-shell/api/worktrees.py +357 -0
- package/vendor/agent-frontend-shell/bootstrap.py +492 -0
- package/vendor/agent-frontend-shell/ctl.sh +427 -0
- package/vendor/agent-frontend-shell/docker-compose.custom.yml +26 -0
- package/vendor/agent-frontend-shell/docker-compose.three-container.yml +168 -0
- package/vendor/agent-frontend-shell/docker-compose.two-container.yml +147 -0
- package/vendor/agent-frontend-shell/docker-compose.yml +57 -0
- package/vendor/agent-frontend-shell/docker_init.bash +459 -0
- package/vendor/agent-frontend-shell/docs/CONTRACTS.md +207 -0
- package/vendor/agent-frontend-shell/docs/EXTENSIONS.md +212 -0
- package/vendor/agent-frontend-shell/docs/ISSUES.md +23 -0
- package/vendor/agent-frontend-shell/docs/UIUX-GUIDE.md +196 -0
- package/vendor/agent-frontend-shell/docs/advanced-chat-setup.md +83 -0
- package/vendor/agent-frontend-shell/docs/docker.md +337 -0
- package/vendor/agent-frontend-shell/docs/onboarding-agent-checklist.md +207 -0
- package/vendor/agent-frontend-shell/docs/onboarding.md +202 -0
- package/vendor/agent-frontend-shell/docs/remote-access.md +75 -0
- package/vendor/agent-frontend-shell/docs/rfcs/README.md +53 -0
- package/vendor/agent-frontend-shell/docs/rfcs/agent-source-boundary.md +70 -0
- package/vendor/agent-frontend-shell/docs/rfcs/canonical-session-resolution.md +124 -0
- package/vendor/agent-frontend-shell/docs/rfcs/hermes-run-adapter-contract.md +1079 -0
- package/vendor/agent-frontend-shell/docs/rfcs/turn-journal.md +195 -0
- package/vendor/agent-frontend-shell/docs/rfcs/webui-run-state-consistency-contract.md +157 -0
- package/vendor/agent-frontend-shell/docs/supervisor.md +280 -0
- package/vendor/agent-frontend-shell/docs/troubleshooting.md +132 -0
- package/vendor/agent-frontend-shell/docs/ui-ux/index.html +863 -0
- package/vendor/agent-frontend-shell/docs/ui-ux/two-stage-proposal.html +768 -0
- package/vendor/agent-frontend-shell/docs/why-hermes.md +489 -0
- package/vendor/agent-frontend-shell/docs/workspace-git.md +92 -0
- package/vendor/agent-frontend-shell/docs/wsl-autostart.md +126 -0
- package/vendor/agent-frontend-shell/eslint.runtime-guard.config.mjs +35 -0
- package/vendor/agent-frontend-shell/extensions/bitseek-design-system.md +330 -0
- package/vendor/agent-frontend-shell/extensions/branding/assets/apple-touch-icon.png +0 -0
- package/vendor/agent-frontend-shell/extensions/branding/assets/empty-logo.svg +739 -0
- package/vendor/agent-frontend-shell/extensions/branding/assets/favicon-192.png +0 -0
- package/vendor/agent-frontend-shell/extensions/branding/assets/favicon-32.png +0 -0
- package/vendor/agent-frontend-shell/extensions/branding/assets/favicon-512.png +0 -0
- package/vendor/agent-frontend-shell/extensions/branding/assets/favicon-512.svg +745 -0
- package/vendor/agent-frontend-shell/extensions/branding/assets/favicon.ico +0 -0
- package/vendor/agent-frontend-shell/extensions/branding/assets/favicon.svg +745 -0
- package/vendor/agent-frontend-shell/extensions/branding/assets/titlebar-icon-v2.svg +751 -0
- package/vendor/agent-frontend-shell/extensions/branding/assets/titlebar-icon-v3.svg +739 -0
- package/vendor/agent-frontend-shell/extensions/branding/assets/titlebar-icon.svg +745 -0
- package/vendor/agent-frontend-shell/extensions/branding/branding.js +112 -0
- package/vendor/agent-frontend-shell/extensions/branding/config.json +14 -0
- package/vendor/agent-frontend-shell/extensions/branding/manifest.json +53 -0
- package/vendor/agent-frontend-shell/extensions/index.js +67 -0
- package/vendor/agent-frontend-shell/extensions/loader/hermes-loader.js +77 -0
- package/vendor/agent-frontend-shell/extensions/manifest.json +16 -0
- package/vendor/agent-frontend-shell/extensions/pages/ai-teammates/page.css +333 -0
- package/vendor/agent-frontend-shell/extensions/pages/ai-teammates/page.js +487 -0
- package/vendor/agent-frontend-shell/extensions/pages/manifest.json +6 -0
- package/vendor/agent-frontend-shell/extensions/pages/registry.css +56 -0
- package/vendor/agent-frontend-shell/extensions/pages/registry.js +302 -0
- package/vendor/agent-frontend-shell/extensions/themes/bitseek/index.css +93 -0
- package/vendor/agent-frontend-shell/extensions/themes/bitseek/index.js +98 -0
- package/vendor/agent-frontend-shell/install.sh +63 -0
- package/vendor/agent-frontend-shell/mcp_server.py +567 -0
- package/vendor/agent-frontend-shell/package.json +12 -0
- package/vendor/agent-frontend-shell/pyproject.toml +56 -0
- package/vendor/agent-frontend-shell/pytest.ini +3 -0
- package/vendor/agent-frontend-shell/requirements.txt +5 -0
- package/vendor/agent-frontend-shell/server.py +624 -0
- package/vendor/agent-frontend-shell/start.ps1 +210 -0
- package/vendor/agent-frontend-shell/start.sh +65 -0
- package/vendor/agent-frontend-shell/static/apple-touch-icon.png +0 -0
- package/vendor/agent-frontend-shell/static/boot.js +1990 -0
- package/vendor/agent-frontend-shell/static/commands.js +1402 -0
- package/vendor/agent-frontend-shell/static/favicon-192.png +0 -0
- package/vendor/agent-frontend-shell/static/favicon-32.png +0 -0
- package/vendor/agent-frontend-shell/static/favicon-512.png +0 -0
- package/vendor/agent-frontend-shell/static/favicon-512.svg +18 -0
- package/vendor/agent-frontend-shell/static/favicon.ico +0 -0
- package/vendor/agent-frontend-shell/static/favicon.svg +20 -0
- package/vendor/agent-frontend-shell/static/i18n.js +15389 -0
- package/vendor/agent-frontend-shell/static/icons.js +92 -0
- package/vendor/agent-frontend-shell/static/index.html +1506 -0
- package/vendor/agent-frontend-shell/static/login.js +177 -0
- package/vendor/agent-frontend-shell/static/manifest.json +53 -0
- package/vendor/agent-frontend-shell/static/messages.js +3521 -0
- package/vendor/agent-frontend-shell/static/onboarding.js +800 -0
- package/vendor/agent-frontend-shell/static/panels.js +7995 -0
- package/vendor/agent-frontend-shell/static/pwa-startup.js +83 -0
- package/vendor/agent-frontend-shell/static/sessions.js +5165 -0
- package/vendor/agent-frontend-shell/static/style.css +4774 -0
- package/vendor/agent-frontend-shell/static/sw.js +173 -0
- package/vendor/agent-frontend-shell/static/terminal.js +632 -0
- package/vendor/agent-frontend-shell/static/ui.js +8997 -0
- package/vendor/agent-frontend-shell/static/vendor/js-yaml/4.1.0/js-yaml.min.js +2 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Main-Bold.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Main-Italic.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Main-Regular.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Math-Italic.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Script-Regular.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/katex.min.css +1 -0
- package/vendor/agent-frontend-shell/static/vendor/katex/0.16.22/katex.min.js +1 -0
- package/vendor/agent-frontend-shell/static/vendor/smd.min.js +29 -0
- package/vendor/agent-frontend-shell/static/workspace.js +680 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/* ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
+
Branding Extension for Hermes WebUI
|
|
3
|
+
Dynamically replaces favicon via /extensions/branding/config.json.
|
|
4
|
+
Loaded via HERMES_WEBUI_EXTENSION_SCRIPT_URLS — runs after boot.js.
|
|
5
|
+
═══════════════════════════════════════════════════════════════════════════ */
|
|
6
|
+
(() => {
|
|
7
|
+
if (document.getElementById('branding-ext')) return;
|
|
8
|
+
|
|
9
|
+
const CONFIG_URL = '/extensions/branding/config.json';
|
|
10
|
+
|
|
11
|
+
async function loadBranding() {
|
|
12
|
+
try {
|
|
13
|
+
const resp = await fetch(CONFIG_URL);
|
|
14
|
+
if (!resp.ok) return;
|
|
15
|
+
const config = await resp.json();
|
|
16
|
+
applyBranding(config);
|
|
17
|
+
} catch (e) {
|
|
18
|
+
console.warn('[branding] Failed to load config:', e);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function applyBranding(config) {
|
|
23
|
+
if (config.title) applyTitle(config.title);
|
|
24
|
+
if (config.favicon) applyFavicon(config.favicon);
|
|
25
|
+
if (config.logo) applyLogo(config.logo);
|
|
26
|
+
if (config.manifest) applyManifest(config.manifest);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function applyTitle(title) {
|
|
30
|
+
window._botName = title;
|
|
31
|
+
document.title = title;
|
|
32
|
+
let attempts = 0;
|
|
33
|
+
const observer = new MutationObserver(() => {
|
|
34
|
+
if (document.title !== title) document.title = title;
|
|
35
|
+
if (++attempts > 50) observer.disconnect();
|
|
36
|
+
});
|
|
37
|
+
observer.observe(document.querySelector('title'), { childList: true, characterData: true, subtree: true });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function applyLogo(logo) {
|
|
41
|
+
if (logo.titlebar) {
|
|
42
|
+
const el = document.querySelector('.app-titlebar-icon');
|
|
43
|
+
if (el) fetchSVGAndInject(el, logo.titlebar);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (logo.emptyState) {
|
|
47
|
+
const el = document.querySelector('.empty-logo');
|
|
48
|
+
if (el) fetchSVGAndInject(el, logo.emptyState);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function fetchSVGAndInject(container, svgUrl) {
|
|
53
|
+
fetch(svgUrl)
|
|
54
|
+
.then(r => r.text())
|
|
55
|
+
.then(svg => {
|
|
56
|
+
if (svg.includes('<svg')) {
|
|
57
|
+
container.innerHTML = svg;
|
|
58
|
+
const svgEl = container.querySelector('svg');
|
|
59
|
+
if (svgEl && !svgEl.getAttribute('width')) {
|
|
60
|
+
svgEl.setAttribute('width', '16');
|
|
61
|
+
svgEl.setAttribute('height', '16');
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
})
|
|
65
|
+
.catch(() => {});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function applyManifest(manifestUrl) {
|
|
69
|
+
const link = document.querySelector('link[rel="manifest"]');
|
|
70
|
+
if (link) link.href = manifestUrl;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function applyFavicon(fav) {
|
|
74
|
+
document.querySelectorAll(
|
|
75
|
+
'link[rel="icon"], link[rel="shortcut icon"], link[rel="apple-touch-icon"]'
|
|
76
|
+
).forEach(el => el.remove());
|
|
77
|
+
|
|
78
|
+
if (fav.svg) {
|
|
79
|
+
const link = document.createElement('link');
|
|
80
|
+
link.rel = 'icon';
|
|
81
|
+
link.type = 'image/svg+xml';
|
|
82
|
+
link.href = fav.svg;
|
|
83
|
+
document.head.appendChild(link);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (fav.png32) {
|
|
87
|
+
const link = document.createElement('link');
|
|
88
|
+
link.rel = 'icon';
|
|
89
|
+
link.type = 'image/png';
|
|
90
|
+
link.sizes = '32x32';
|
|
91
|
+
link.href = fav.png32;
|
|
92
|
+
document.head.appendChild(link);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (fav.ico) {
|
|
96
|
+
const link = document.createElement('link');
|
|
97
|
+
link.rel = 'shortcut icon';
|
|
98
|
+
link.href = fav.ico;
|
|
99
|
+
document.head.appendChild(link);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (fav.appleTouch) {
|
|
103
|
+
const link = document.createElement('link');
|
|
104
|
+
link.rel = 'apple-touch-icon';
|
|
105
|
+
link.sizes = '512x512';
|
|
106
|
+
link.href = fav.appleTouch;
|
|
107
|
+
document.head.appendChild(link);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
loadBranding();
|
|
112
|
+
})();
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "BitSeek Claw",
|
|
3
|
+
"favicon": {
|
|
4
|
+
"svg": "/extensions/branding/assets/favicon.svg",
|
|
5
|
+
"png32": "/extensions/branding/assets/favicon-32.png",
|
|
6
|
+
"ico": "/extensions/branding/assets/favicon.ico",
|
|
7
|
+
"appleTouch": "/extensions/branding/assets/apple-touch-icon.png"
|
|
8
|
+
},
|
|
9
|
+
"logo": {
|
|
10
|
+
"titlebar": "/extensions/branding/assets/titlebar-icon-v2.svg",
|
|
11
|
+
"emptyState": "/extensions/branding/assets/empty-logo.svg"
|
|
12
|
+
},
|
|
13
|
+
"manifest": "/extensions/branding/manifest.json"
|
|
14
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "./",
|
|
3
|
+
"name": "BitSeek Claw",
|
|
4
|
+
"short_name": "BitSeek",
|
|
5
|
+
"description": "BitSeek Claw AI Agent Web UI",
|
|
6
|
+
"start_url": "./?source=pwa",
|
|
7
|
+
"scope": "./",
|
|
8
|
+
"display": "standalone",
|
|
9
|
+
"display_override": ["window-controls-overlay", "standalone", "minimal-ui"],
|
|
10
|
+
"background_color": "#0D0D1A",
|
|
11
|
+
"theme_color": "#0D0D1A",
|
|
12
|
+
"orientation": "portrait-primary",
|
|
13
|
+
"categories": ["productivity", "utilities"],
|
|
14
|
+
"shortcuts": [
|
|
15
|
+
{
|
|
16
|
+
"name": "New conversation",
|
|
17
|
+
"short_name": "New chat",
|
|
18
|
+
"description": "Open BitSeek Claw ready for a new chat",
|
|
19
|
+
"url": "./?source=pwa&action=new-chat",
|
|
20
|
+
"icons": [
|
|
21
|
+
{
|
|
22
|
+
"src": "/extensions/branding/assets/favicon-192.png",
|
|
23
|
+
"sizes": "192x192",
|
|
24
|
+
"type": "image/png"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"icons": [
|
|
30
|
+
{
|
|
31
|
+
"src": "/extensions/branding/assets/favicon.svg",
|
|
32
|
+
"sizes": "any",
|
|
33
|
+
"type": "image/svg+xml",
|
|
34
|
+
"purpose": "any maskable"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"src": "/extensions/branding/assets/favicon-32.png",
|
|
38
|
+
"sizes": "32x32",
|
|
39
|
+
"type": "image/png"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"src": "/extensions/branding/assets/favicon-192.png",
|
|
43
|
+
"sizes": "192x192",
|
|
44
|
+
"type": "image/png"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"src": "/extensions/branding/assets/favicon-512.png",
|
|
48
|
+
"sizes": "512x512",
|
|
49
|
+
"type": "image/png",
|
|
50
|
+
"purpose": "any maskable"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hermes Extension System - Main Entry
|
|
3
|
+
*
|
|
4
|
+
* Fetches extensions/manifest.json, loads CSS and JS assets
|
|
5
|
+
* in declared order, then dismisses the loader.
|
|
6
|
+
*
|
|
7
|
+
* Loaded via HERMES_WEBUI_EXTENSION_SCRIPT_URLS (single entry).
|
|
8
|
+
*/
|
|
9
|
+
(async function () {
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
var MANIFEST_URL = '/extensions/manifest.json';
|
|
13
|
+
|
|
14
|
+
/* ── load a CSS file (non-blocking) ── */
|
|
15
|
+
function loadCSS(url) {
|
|
16
|
+
return new Promise(function (resolve) {
|
|
17
|
+
var link = document.createElement('link');
|
|
18
|
+
link.rel = 'stylesheet';
|
|
19
|
+
link.href = url;
|
|
20
|
+
link.onload = resolve;
|
|
21
|
+
link.onerror = resolve;
|
|
22
|
+
document.head.appendChild(link);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* ── load a JS file (blocking, maintains order) ── */
|
|
27
|
+
function loadJS(url) {
|
|
28
|
+
return new Promise(function (resolve, reject) {
|
|
29
|
+
var s = document.createElement('script');
|
|
30
|
+
s.src = url;
|
|
31
|
+
s.onload = resolve;
|
|
32
|
+
s.onerror = function () { reject(new Error('Failed: ' + url)); };
|
|
33
|
+
document.body.appendChild(s);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* ── load all extensions from manifest ── */
|
|
38
|
+
async function loadExtensions() {
|
|
39
|
+
var resp = await fetch(MANIFEST_URL);
|
|
40
|
+
if (!resp.ok) throw new Error('Manifest not found');
|
|
41
|
+
var manifest = await resp.json();
|
|
42
|
+
var exts = (manifest.extensions || []).slice()
|
|
43
|
+
.sort(function (a, b) { return (a.order || 0) - (b.order || 0); });
|
|
44
|
+
|
|
45
|
+
for (var i = 0; i < exts.length; i++) {
|
|
46
|
+
var ext = exts[i];
|
|
47
|
+
var cssTasks = (ext.css || []).map(loadCSS);
|
|
48
|
+
await Promise.all(cssTasks);
|
|
49
|
+
var jsFiles = ext.js || [];
|
|
50
|
+
for (var j = 0; j < jsFiles.length; j++) {
|
|
51
|
+
await loadJS(jsFiles[j]);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* ── execute and dismiss loader ── */
|
|
57
|
+
try {
|
|
58
|
+
await loadExtensions();
|
|
59
|
+
} catch (e) {
|
|
60
|
+
console.warn('[extensions] Load error:', e);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (typeof window.__hermesLoaderDismiss === 'function') {
|
|
64
|
+
window.__hermesLoaderDismiss();
|
|
65
|
+
}
|
|
66
|
+
document.dispatchEvent(new Event('hermes-loader:dismiss'));
|
|
67
|
+
})();
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/* hermes-loader: splash screen web-component
|
|
2
|
+
Injected after <body> (no defer) — runs before all defer scripts.
|
|
3
|
+
Displays a loading overlay and auto-dismisses via manual API call. */
|
|
4
|
+
(function () {
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
var DISMISS_DELAY = 350;
|
|
8
|
+
|
|
9
|
+
/* ── resolve colors from current skin/theme ── */
|
|
10
|
+
function _colors() {
|
|
11
|
+
var h = document.documentElement;
|
|
12
|
+
var skin = h.dataset.skin || '';
|
|
13
|
+
var dark = h.classList.contains('dark');
|
|
14
|
+
if (skin === 'bitseek') {
|
|
15
|
+
return dark
|
|
16
|
+
? { bg: '#160804', accent: '#FF7F50', ring: 'rgba(255,127,80,.35)', text: '#C4BAB8' }
|
|
17
|
+
: { bg: '#FFFFFF', accent: '#FF7F50', ring: 'rgba(255,127,80,.30)', text: '#A7A7A7' };
|
|
18
|
+
}
|
|
19
|
+
return dark
|
|
20
|
+
? { bg: '#0D0D1A', accent: '#A78BFA', ring: 'rgba(167,139,250,.35)', text: '#9CA3AF' }
|
|
21
|
+
: { bg: '#FAF7F0', accent: '#7C3AED', ring: 'rgba(124,58,237,.30)', text: '#9CA3AF' };
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* ── custom element ── */
|
|
25
|
+
class HermesLoader extends HTMLElement {
|
|
26
|
+
connectedCallback() {
|
|
27
|
+
var c = _colors();
|
|
28
|
+
var shadow = this.attachShadow({ mode: 'open' });
|
|
29
|
+
shadow.innerHTML =
|
|
30
|
+
'<style>' +
|
|
31
|
+
':host{position:fixed;inset:0;z-index:2147483647;display:flex;align-items:center;justify-content:center;' +
|
|
32
|
+
'background:' + c.bg + ';transition:opacity .25s ease-out,visibility .25s;}' +
|
|
33
|
+
':host(.hiding){opacity:0;visibility:hidden;pointer-events:none;}' +
|
|
34
|
+
'.wrap{text-align:center;}' +
|
|
35
|
+
'.spinner{width:44px;height:44px;margin:0 auto 20px;border:3px solid ' + c.ring + ';' +
|
|
36
|
+
'border-top-color:' + c.accent + ';border-radius:50%;animation:spin .7s linear infinite;}' +
|
|
37
|
+
'.text{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;' +
|
|
38
|
+
'font-size:13px;letter-spacing:.3px;color:' + c.text + ';}' +
|
|
39
|
+
'@keyframes spin{to{transform:rotate(360deg)}}' +
|
|
40
|
+
'</style>' +
|
|
41
|
+
'<div class="wrap">' +
|
|
42
|
+
'<div class="spinner"></div>' +
|
|
43
|
+
'<div class="text">Loading...</div>' +
|
|
44
|
+
'</div>';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
dismiss() {
|
|
48
|
+
if (this._dismissed) return;
|
|
49
|
+
this._dismissed = true;
|
|
50
|
+
this.classList.add('hiding');
|
|
51
|
+
setTimeout(function () { try { this.remove(); } catch (_) {} }.bind(this), DISMISS_DELAY);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (!customElements.get('hermes-loader')) {
|
|
56
|
+
customElements.define('hermes-loader', HermesLoader);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* ── inject into DOM ── */
|
|
60
|
+
var el = document.createElement('hermes-loader');
|
|
61
|
+
document.body.prepend(el);
|
|
62
|
+
|
|
63
|
+
/* ── orchestration ── */
|
|
64
|
+
var dismissed = false;
|
|
65
|
+
|
|
66
|
+
function dismiss() {
|
|
67
|
+
if (dismissed) return;
|
|
68
|
+
dismissed = true;
|
|
69
|
+
setTimeout(() => {
|
|
70
|
+
el.dismiss();
|
|
71
|
+
}, 600);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* manual dismiss API */
|
|
75
|
+
window.__hermesLoaderDismiss = dismiss;
|
|
76
|
+
document.addEventListener('hermes-loader:dismiss', dismiss);
|
|
77
|
+
})();
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extensions": [
|
|
3
|
+
{
|
|
4
|
+
"id": "branding",
|
|
5
|
+
"order": 1,
|
|
6
|
+
"css": [],
|
|
7
|
+
"js": ["/extensions/branding/branding.js"]
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"id": "pages",
|
|
11
|
+
"order": 2,
|
|
12
|
+
"css": ["/extensions/pages/registry.css"],
|
|
13
|
+
"js": ["/extensions/pages/registry.js"]
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
/* AI Colleagues Page Styles */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Note: The registry creates the outer container with id="mainAi-teammates"
|
|
5
|
+
* (from capitalize("ai-teammates")). The display:flex is handled by the
|
|
6
|
+
* dynamic CSS in registry.js when .showing-ai-teammates is active.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/* Main view scrollable container */
|
|
10
|
+
#mainAi-teammates {
|
|
11
|
+
overflow-y: auto;
|
|
12
|
+
background: var(--bg, #f8f4f0);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* ── Page header ─────────────────────────────────────────────────── */
|
|
16
|
+
.at-page-header {
|
|
17
|
+
padding: 24px 32px 16px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.at-page-title {
|
|
21
|
+
font-size: 22px;
|
|
22
|
+
font-weight: 700;
|
|
23
|
+
color: var(--text, #1a1a1a);
|
|
24
|
+
margin: 0 0 4px;
|
|
25
|
+
line-height: 1.3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.at-page-subtitle {
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
color: var(--muted, #888);
|
|
31
|
+
margin: 0;
|
|
32
|
+
line-height: 1.5;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* ── Content card ────────────────────────────────────────────────── */
|
|
36
|
+
.at-content-card {
|
|
37
|
+
margin: 0 24px 24px;
|
|
38
|
+
background: var(--surface, #fff);
|
|
39
|
+
border-radius: var(--radius-lg, 12px);
|
|
40
|
+
border: 1px solid var(--border, #e8e4e0);
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* ── Card header ─────────────────────────────────────────────────── */
|
|
45
|
+
.at-card-header {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: space-between;
|
|
49
|
+
padding: 16px 20px;
|
|
50
|
+
border-bottom: 1px solid var(--border, #f0ece8);
|
|
51
|
+
margin-bottom: 16px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.at-card-header-left {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
gap: 12px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.at-card-title {
|
|
61
|
+
font-size: 15px;
|
|
62
|
+
font-weight: 600;
|
|
63
|
+
color: var(--text, #1a1a1a);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.at-card-count {
|
|
67
|
+
font-size: 12px;
|
|
68
|
+
color: var(--muted, #888);
|
|
69
|
+
background: var(--surface-subtle, #f5f5f5);
|
|
70
|
+
padding: 2px 10px;
|
|
71
|
+
border-radius: var(--radius-pill, 999px);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.at-card-header-right {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
gap: 8px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* ── Buttons ─────────────────────────────────────────────────────── */
|
|
81
|
+
.at-btn {
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: 6px;
|
|
85
|
+
padding: 7px 16px;
|
|
86
|
+
border-radius: var(--radius-md, 8px);
|
|
87
|
+
font-size: 13px;
|
|
88
|
+
font-weight: 500;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
transition: all 0.15s ease;
|
|
91
|
+
border: none;
|
|
92
|
+
line-height: 1.4;
|
|
93
|
+
white-space: nowrap;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.at-btn-outline {
|
|
97
|
+
background: var(--surface, #fff);
|
|
98
|
+
color: var(--accent, #e8734a);
|
|
99
|
+
border: 1px solid var(--accent, #e8734a);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.at-btn-outline:hover {
|
|
103
|
+
background: var(--accent, #e8734a);
|
|
104
|
+
color: var(--surface, #fff);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.at-btn-primary {
|
|
108
|
+
background: var(--accent, #e8734a);
|
|
109
|
+
color: var(--surface, #fff);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.at-btn-primary:hover {
|
|
113
|
+
background: var(--accent-hover, #d66a42);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* ── Category section ────────────────────────────────────────────── */
|
|
117
|
+
.at-category {
|
|
118
|
+
background: var(--surface-subtle, #faf8f6);
|
|
119
|
+
border-radius: var(--radius-md, 8px);
|
|
120
|
+
margin: 0 16px 16px;
|
|
121
|
+
padding: 16px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.at-category:first-of-type {
|
|
125
|
+
margin-top: 16px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.at-category-header {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
gap: 8px;
|
|
132
|
+
padding: 0 0 12px;
|
|
133
|
+
margin-bottom: 12px;
|
|
134
|
+
border-bottom: 1px solid var(--border, #e8e4e0);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.at-category-dot {
|
|
138
|
+
width: 8px;
|
|
139
|
+
height: 8px;
|
|
140
|
+
border-radius: 50%;
|
|
141
|
+
flex-shrink: 0;
|
|
142
|
+
background: var(--accent, #e8734a);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.at-category-name {
|
|
146
|
+
font-size: 14px;
|
|
147
|
+
font-weight: 600;
|
|
148
|
+
color: var(--text, #1a1a1a);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.at-category-count {
|
|
152
|
+
font-size: 12px;
|
|
153
|
+
color: var(--muted, #888);
|
|
154
|
+
margin-left: auto;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* ── Role grid ───────────────────────────────────────────────────── */
|
|
158
|
+
.at-role-grid {
|
|
159
|
+
display: grid;
|
|
160
|
+
grid-template-columns: repeat(4, 1fr);
|
|
161
|
+
gap: 12px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@media (max-width: 1200px) {
|
|
165
|
+
.at-role-grid {
|
|
166
|
+
grid-template-columns: repeat(3, 1fr);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@media (max-width: 900px) {
|
|
171
|
+
.at-role-grid {
|
|
172
|
+
grid-template-columns: repeat(2, 1fr);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@media (max-width: 600px) {
|
|
177
|
+
.at-role-grid {
|
|
178
|
+
grid-template-columns: 1fr;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* ── Role card ───────────────────────────────────────────────────── */
|
|
183
|
+
.at-role-card {
|
|
184
|
+
display: flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
justify-content: space-between;
|
|
187
|
+
padding: 12px;
|
|
188
|
+
border-radius: var(--radius-md, 8px);
|
|
189
|
+
border: 1px solid var(--border, #e8e4e0);
|
|
190
|
+
background: var(--surface, #fff);
|
|
191
|
+
cursor: pointer;
|
|
192
|
+
transition: all 0.15s ease;
|
|
193
|
+
min-height: 64px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.at-role-card:hover {
|
|
197
|
+
border-color: var(--accent, #e8734a);
|
|
198
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.at-role-card--loading {
|
|
202
|
+
pointer-events: none;
|
|
203
|
+
opacity: 0.7;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.at-role-card--loading .at-role-arrow {
|
|
207
|
+
color: var(--accent, #e8734a);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.at-spinner {
|
|
211
|
+
animation: at-spin 1s linear infinite;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@keyframes at-spin {
|
|
215
|
+
from { transform: rotate(0deg); }
|
|
216
|
+
to { transform: rotate(360deg); }
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.at-role-card-body {
|
|
220
|
+
display: flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
gap: 10px;
|
|
223
|
+
min-width: 0;
|
|
224
|
+
flex: 1;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* ── Avatar ──────────────────────────────────────────────────────── */
|
|
228
|
+
.at-role-avatar {
|
|
229
|
+
width: 42px;
|
|
230
|
+
height: 42px;
|
|
231
|
+
border-radius: 10px;
|
|
232
|
+
display: flex;
|
|
233
|
+
align-items: center;
|
|
234
|
+
justify-content: center;
|
|
235
|
+
flex-shrink: 0;
|
|
236
|
+
background: linear-gradient(135deg, #f5e6d3 0%, #f0d4b8 100%);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.at-role-initials {
|
|
240
|
+
font-size: 13px;
|
|
241
|
+
font-weight: 700;
|
|
242
|
+
color: #8b5e3c;
|
|
243
|
+
letter-spacing: 0.02em;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* ── Role info ───────────────────────────────────────────────────── */
|
|
247
|
+
.at-role-info {
|
|
248
|
+
min-width: 0;
|
|
249
|
+
flex: 1;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.at-role-name {
|
|
253
|
+
font-size: 13px;
|
|
254
|
+
font-weight: 600;
|
|
255
|
+
color: var(--text, #1a1a1a);
|
|
256
|
+
line-height: 1.4;
|
|
257
|
+
overflow: hidden;
|
|
258
|
+
text-overflow: ellipsis;
|
|
259
|
+
white-space: nowrap;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.at-role-desc {
|
|
263
|
+
font-size: 11px;
|
|
264
|
+
color: var(--muted, #999);
|
|
265
|
+
line-height: 1.4;
|
|
266
|
+
margin-top: 2px;
|
|
267
|
+
overflow: hidden;
|
|
268
|
+
text-overflow: ellipsis;
|
|
269
|
+
white-space: nowrap;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* ── Arrow ───────────────────────────────────────────────────────── */
|
|
273
|
+
.at-role-arrow {
|
|
274
|
+
flex-shrink: 0;
|
|
275
|
+
color: var(--muted, #ccc);
|
|
276
|
+
margin-left: 8px;
|
|
277
|
+
transition: color 0.15s ease;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.at-role-card:hover .at-role-arrow {
|
|
281
|
+
color: var(--accent, #e8734a);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* ── Loading / Error / Empty states ──────────────────────────────── */
|
|
285
|
+
.ai-teammates-body {
|
|
286
|
+
flex: 1;
|
|
287
|
+
display: flex;
|
|
288
|
+
flex-direction: column;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.ai-teammates-loading {
|
|
292
|
+
display: flex;
|
|
293
|
+
align-items: center;
|
|
294
|
+
justify-content: center;
|
|
295
|
+
flex: 1;
|
|
296
|
+
padding: 48px;
|
|
297
|
+
color: var(--muted, #888);
|
|
298
|
+
font-size: 14px;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.ai-teammates-error {
|
|
302
|
+
display: flex;
|
|
303
|
+
align-items: center;
|
|
304
|
+
justify-content: center;
|
|
305
|
+
flex: 1;
|
|
306
|
+
padding: 48px;
|
|
307
|
+
color: var(--error, #e84a4a);
|
|
308
|
+
font-size: 14px;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.at-empty {
|
|
312
|
+
display: flex;
|
|
313
|
+
flex-direction: column;
|
|
314
|
+
align-items: center;
|
|
315
|
+
justify-content: center;
|
|
316
|
+
padding: 64px 32px;
|
|
317
|
+
gap: 12px;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.at-empty-text {
|
|
321
|
+
font-size: 14px;
|
|
322
|
+
color: var(--muted, #888);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/* ── Panel view styling (hidden — no sidebar needed) ─────────────── */
|
|
326
|
+
/* Registry creates id as 'panel' + capitalize(name) = 'panelAi-teammates' */
|
|
327
|
+
#panelAi-teammates {
|
|
328
|
+
display: none !important;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.sidebar:has(+main.showing-ai-teammates) {
|
|
332
|
+
display: none !important;
|
|
333
|
+
}
|